/// <summary>
 /// Configures default client services.
 /// </summary>
 /// <param name="builder">The host builder.</param>
 /// <returns>The client builder.</returns>
 public static IClientBuilder ConfigureDefaults(this IClientBuilder builder)
 {
     // Configure the container to use an Orleans client.
     builder.ConfigureServices(services =>
     {
         const string key = "OrleansClientServicesAdded";
         if (!builder.Properties.ContainsKey(key))
         {
             DefaultClientServices.AddDefaultServices(services);
             builder.Properties.Add(key, true);
         }
     });
     return(builder);
 }
示例#2
0
 public ClientBuilder(IServiceCollection services)
 {
     Services = services;
     DefaultClientServices.AddDefaultServices(services);
 }