示例#1
0
 /// <summary>
 /// Get client for type.
 /// </summary>
 public static CosmosClient GetClient <T>(this ICosmosClientRegistry cosmosClientRegistry)
 {
     return(cosmosClientRegistry.GetClient(typeof(T).FullName));
 }
示例#2
0
 /// <summary>
 /// Get default client.
 /// </summary>
 public static CosmosClient GetClient(this ICosmosClientRegistry cosmosClientRegistry)
 {
     return(cosmosClientRegistry.GetClient(CosmosClientRegistration.DefaultName));
 }