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