Ejemplo n.º 1
0
 public static IClientBuilder ConfigureClustering(
     this IClientBuilder builder, IHostingEnvironment hostingEnvironment)
 {
     if (hostingEnvironment.IsDevelopment())
     {
         return(builder.UseLocalhostClustering());
     }
     else if (hostingEnvironment.IsEnvironment("Compose"))
     {
         return(builder.UseComposeClustering("host"));
     }
     else
     {
         return(builder.UseKubeGatewayListProvider(opt => { opt.Group = "orleans.dot.net"; }));
     }
 }