Beispiel #1
0
        private static ClusterConfiguration LoadClusterConfiguration()
        {
            var cluster = new ClusterConfiguration();

            cluster.LoadFromFile("OrleansConfiguration.dev.xml");
            cluster.RegisterDashboard();
            cluster.AddMongoDBStorageProvider("PubSubStore", c =>
            {
                c.ConnectionString = Configuration.GetSection("persistenceOptions")["connectionString"];
                c.UseJsonFormat    = true;
            });
            return(cluster);
        }