示例#1
0
        public override bool OnStart()
        {
            ServicePointManager.DefaultConnectionLimit = 12;

            var config = new ClusterConfiguration()
                         .LoadFromEmbeddedResource <Program>("Orleans.xml");

            system = ActorSystem.Configure().Azure()
                     .Cluster()
                     .From(config)
                     .Register(Assembly.GetExecutingAssembly())
                     .Run <HubGateway.Bootstrapper>()
                     .Done();

            return(base.OnStart());
        }
示例#2
0
 internal AzureEmbeddedActorSystem(AppDomain domain, IActorSystem client, AzureClusterActorSystem cluster)
     : base(domain, client, cluster)
 {
     this.cluster = cluster;
 }