예제 #1
0
 public TestHooksSystemTarget(
     ISiloHost host,
     ILocalSiloDetails siloDetails,
     ILoggerFactory loggerFactory,
     TestHooksHostEnvironmentStatistics hostEnvironmentStatistics,
     IOptions <LoadSheddingOptions> loadSheddingOptions)
     : base(Constants.TestHooksSystemTargetId, siloDetails.SiloAddress, loggerFactory)
 {
     this.host = host;
     this.hostEnvironmentStatistics = hostEnvironmentStatistics;
     this.loadSheddingOptions       = loadSheddingOptions.Value;
     this.consistentRingProvider    = this.host.Services.GetRequiredService <IConsistentRingProvider>();
 }
예제 #2
0
 public TestHooksSystemTarget(
     IServiceProvider serviceProvider,
     ILocalSiloDetails siloDetails,
     ILoggerFactory loggerFactory,
     ISiloStatusOracle siloStatusOracle,
     TestHooksHostEnvironmentStatistics hostEnvironmentStatistics,
     IOptions <LoadSheddingOptions> loadSheddingOptions)
     : base(Constants.TestHooksSystemTargetType, siloDetails.SiloAddress, loggerFactory)
 {
     this.serviceProvider           = serviceProvider;
     this.siloStatusOracle          = siloStatusOracle;
     this.hostEnvironmentStatistics = hostEnvironmentStatistics;
     this.loadSheddingOptions       = loadSheddingOptions.Value;
     this.consistentRingProvider    = this.serviceProvider.GetRequiredService <IConsistentRingProvider>();
 }