Esempio n. 1
0
        public ISiloHostBuilder CreateSiloBuilder(string siloName, ClusterConfiguration clusterConfiguration)
        {
            var builder = new SiloHostBuilder();

            return(builder.ConfigureSiloName(siloName)
                   .UseConfiguration(clusterConfiguration)
                   .ConfigureLogging(loggingBuilder => TestingUtils.ConfigureDefaultLoggingBuilder(loggingBuilder,
                                                                                                   clusterConfiguration.GetOrCreateNodeConfigurationForSilo(siloName).TraceFileName)));
        }
Esempio n. 2
0
        public ISiloHostBuilder CreateSiloBuilder(string siloName, ClusterConfiguration clusterConfiguration)
        {
            var builder = new SiloHostBuilder();

            return(builder.ConfigureSiloName(siloName)
                   .ConfigureApplicationParts(parts => parts.AddFromAppDomain())
                   .UseConfiguration(clusterConfiguration)
                   .ConfigureLogging(loggingBuilder => TestingUtils.ConfigureDefaultLoggingBuilder(loggingBuilder,
                                                                                                   TestingUtils.CreateTraceFileName(siloName, clusterConfiguration.Globals.ClusterId))));
        }