예제 #1
0
        public BaseTestFixture()
        {
            var options = new TestClusterOptions(1);

            options.ClusterConfiguration.Globals.RegisterBootstrapProvider <OrniscientFilterInterceptor>("OrniscientFilterInterceptor");
            //options.ClusterConfiguration.Globals.ResponseTimeout = TimeSpan.FromMinutes(1);
            options.ClusterConfiguration.ApplyToAllNodes(nodeConfig => nodeConfig.MaxActiveThreads = 1);
            this.HostedCluster = new TestCluster(options);
            if (this.HostedCluster.Primary == null)
            {
                HostedCluster.Deploy();
            }
        }