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());
public static ISiloBuilder UseOrleankka(this ISiloBuilder builder, OrleankkaClusterOptions cfg) => builder.ConfigureServices(services => UseOrleankka(builder.GetApplicationPartManager(), services, cfg));