本文整理汇总了C#中GlobalConfiguration.Equals方法的典型用法代码示例。如果您正苦于以下问题:C# GlobalConfiguration.Equals方法的具体用法?C# GlobalConfiguration.Equals怎么用?C# GlobalConfiguration.Equals使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GlobalConfiguration
的用法示例。
在下文中一共展示了GlobalConfiguration.Equals方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetMembershipTable
internal IMembershipTable GetMembershipTable(GlobalConfiguration.LivenessProviderType livenessType, string membershipTableAssembly = null)
{
IMembershipTable membershipTable;
if (livenessType.Equals(GlobalConfiguration.LivenessProviderType.MembershipTableGrain))
{
membershipTable =
GrainReference.FromGrainId(Constants.SystemMembershipTableId).Cast<IMembershipTableGrain>();
}
else if (livenessType.Equals(GlobalConfiguration.LivenessProviderType.SqlServer))
{
membershipTable = AssemblyLoader.LoadAndCreateInstance<IMembershipTable>(Constants.ORLEANS_SQL_UTILS_DLL, logger);
}
else if (livenessType.Equals(GlobalConfiguration.LivenessProviderType.AzureTable))
{
membershipTable = AssemblyLoader.LoadAndCreateInstance<IMembershipTable>(Constants.ORLEANS_AZURE_UTILS_DLL, logger);
}
else if (livenessType.Equals(GlobalConfiguration.LivenessProviderType.ZooKeeper))
{
membershipTable = AssemblyLoader.LoadAndCreateInstance<IMembershipTable>(Constants.ORLEANS_ZOOKEEPER_UTILS_DLL, logger);
}
else if (livenessType.Equals(GlobalConfiguration.LivenessProviderType.Custom))
{
membershipTable = AssemblyLoader.LoadAndCreateInstance<IMembershipTable>(membershipTableAssembly, logger);
}
else
{
throw new NotImplementedException("No membership table provider found for LivenessType=" + livenessType);
}
return membershipTable;
}