Exemple #1
0
 static void UseOrleankka(IApplicationPartManager apm, IServiceCollection services, OrleankkaClusterOptions cfg)
 {
     cfg.Configure(apm, services);
     apm.AddApplicationPart(typeof(IClientEndpoint).Assembly).WithCodeGeneration();
 }
 public static ISiloHostBuilder UseOrleankka(this ISiloHostBuilder builder, OrleankkaClusterOptions cfg) =>
 builder
 .ConfigureServices(services => cfg.Configure(builder, services))
 .ConfigureApplicationParts(apm => apm
                            .AddApplicationPart(typeof(IClientEndpoint).Assembly)
                            .WithCodeGeneration());
Exemple #3
0
 public static ISiloBuilder UseOrleankka(this ISiloBuilder builder, OrleankkaClusterOptions cfg) =>
 builder.ConfigureServices(services => UseOrleankka(builder.GetApplicationPartManager(), services, cfg));