//
// Copyright (c) Microsoft. All rights reserved.
//
namespace SocialPlus.Server.Tables
{
using Microsoft.CTStore;
///
/// Extensions for storage types
///
public static class Extensions
{
///
/// Convert storage consistency mode to CT store consistency mode
///
/// Storage consistency mode
/// Consistency mode
public static ConsistencyMode ToConsistencyMode(this StorageConsistencyMode storageConsistencyMode)
{
if (storageConsistencyMode == StorageConsistencyMode.Express)
{
return ConsistencyMode.Express;
}
else if (storageConsistencyMode == StorageConsistencyMode.Eventual)
{
return ConsistencyMode.Eventual;
}
return ConsistencyMode.Strong;
}
}
}