示例#1
0
        public IActorSystem Done()
        {
            var system = new ClusterActorSystem(this, Configuration);

            Configure();

            system.Start();
            return(system);
        }
示例#2
0
        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());
        }
示例#3
0
 internal ClusterActorSystem(ClusterConfiguration configuration)
 {
     current = this;
     Host    = new SiloHost(Dns.GetHostName(), configuration);
 }