public IActorSystem Done() { var system = new ClusterActorSystem(this, Configuration); Configure(); system.Start(); return(system); }
internal ClusterActorSystem(ClusterConfiguration configuration, Action <IServiceCollection> di, ActorInvocationPipeline pipeline, IActorRefInvoker invoker) : base(invoker) { this.di = di; Pipeline = pipeline; current = this; configuration.UseStartupType <Startup>(); using (Trace.Execution("Orleans silo initialization")) { Host = new SiloHost(Dns.GetHostName(), configuration); Host.LoadOrleansConfig(); Host.InitializeOrleansSilo(); } Silo = Host.GetSilo(); Initialize(Silo.GetServiceProvider()); }
internal ClusterActorSystem(ClusterConfiguration configuration) { current = this; Host = new SiloHost(Dns.GetHostName(), configuration); }