Exemplo n.º 1
0
 public OrleansTaskSchedulerAdvancedTests(ITestOutputHelper output)
 {
     this.output = output;
     this.runtimeStatisticsGroup = new RuntimeStatisticsGroup();
     this.performanceMetrics     = new SiloPerformanceMetrics(this.runtimeStatisticsGroup);
     OrleansTaskSchedulerBasicTests.InitSchedulerLogging();
 }
 public OrleansTaskSchedulerAdvancedTests_Set2(ITestOutputHelper output)
 {
     this.output             = output;
     loggerFactory           = OrleansTaskSchedulerBasicTests.InitSchedulerLogging();
     context                 = new UnitTestSchedulingContext();
     this.performanceMetrics = new SiloPerformanceMetrics(new NoOpHostEnvironmentStatistics(loggerFactory), new AppEnvironmentStatistics(), this.loggerFactory);
     masterScheduler         = TestInternalHelper.InitializeSchedulerForTesting(context, this.performanceMetrics, loggerFactory);
 }
Exemplo n.º 3
0
 public OrleansTaskSchedulerBasicTests(ITestOutputHelper output)
 {
     this.output = output;
     SynchronizationContext.SetSynchronizationContext(null);
     this.loggerFactory      = InitSchedulerLogging();
     this.performanceMetrics = new SiloPerformanceMetrics(new NoOpHostEnvironmentStatistics(this.loggerFactory), new AppEnvironmentStatistics(), this.loggerFactory, Options.Create <LoadSheddingOptions>(new LoadSheddingOptions()));
     this.rootContext        = new UnitTestSchedulingContext();
     this.scheduler          = TestInternalHelper.InitializeSchedulerForTesting(this.rootContext, this.performanceMetrics, this.loggerFactory);
 }
 public OrleansTaskSchedulerAdvancedTests_Set2(ITestOutputHelper output)
 {
     this.output   = output;
     loggerFactory = OrleansTaskSchedulerBasicTests.InitSchedulerLogging();
     context       = new UnitTestSchedulingContext();
     this.runtimeStatisticsGroup = new RuntimeStatisticsGroup(loggerFactory);
     this.performanceMetrics     = new SiloPerformanceMetrics(this.runtimeStatisticsGroup, this.loggerFactory);
     masterScheduler             = TestInternalHelper.InitializeSchedulerForTesting(context, this.performanceMetrics, loggerFactory);
 }
Exemplo n.º 5
0
 public OrleansTaskSchedulerBasicTests(ITestOutputHelper output)
 {
     this.output = output;
     SynchronizationContext.SetSynchronizationContext(null);
     loggerFactory = InitSchedulerLogging();
     this.runtimeStatisticsGroup = new RuntimeStatisticsGroup(loggerFactory);
     this.performanceMetrics     = new SiloPerformanceMetrics(this.runtimeStatisticsGroup, this.loggerFactory);
     this.rootContext            = new UnitTestSchedulingContext();
     this.scheduler = TestInternalHelper.InitializeSchedulerForTesting(rootContext, this.performanceMetrics, loggerFactory);
 }
Exemplo n.º 6
0
 public OrleansTaskSchedulerAdvancedTests(ITestOutputHelper output)
 {
     this.output             = output;
     this.loggerFactory      = OrleansTaskSchedulerBasicTests.InitSchedulerLogging();
     this.performanceMetrics = new SiloPerformanceMetrics(new NoOpHostEnvironmentStatistics(this.loggerFactory), new AppEnvironmentStatistics(), this.loggerFactory, Options.Create <SiloStatisticsOptions>(new SiloStatisticsOptions()));
 }