public OrleansClusterResolverTests(ITestOutputHelper output)
        {
            this.serviceName = new Uri("fabric:/test/robust/coffee");

            this.queryManager = Substitute.For <IFabricQueryManager>();
            this.log          = new TestOutputLogger(output);
            this.output       = output;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="FabricServiceSiloResolver"/> class.
 /// </summary>
 /// <param name="serviceName">The name of the Service Fabric service which this instance will resolve.</param>
 /// <param name="queryManager">The fabric query manager.</param>
 /// <param name="loggerFactory">The logger factory.</param>
 public FabricServiceSiloResolver(
     Uri serviceName,
     IFabricQueryManager queryManager,
     Factory <string, Logger> loggerFactory)
 {
     this.serviceName            = serviceName;
     this.queryManager           = queryManager;
     this.log                    = loggerFactory(nameof(FabricServiceSiloResolver));
     this.partitionChangeHandler = this.OnPartitionChange;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="FabricServiceSiloResolver"/> class.
 /// </summary>
 /// <param name="serviceName">The name of the Service Fabric service which this instance will resolve.</param>
 /// <param name="queryManager">The fabric query manager.</param>
 /// <param name="logger">The logger.</param>
 public FabricServiceSiloResolver(
     Uri serviceName,
     IFabricQueryManager queryManager,
     ILogger <FabricServiceSiloResolver> logger)
 {
     this.serviceName            = serviceName;
     this.queryManager           = queryManager;
     this.log                    = logger;
     this.partitionChangeHandler = this.OnPartitionChange;
 }
예제 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FabricServiceSiloResolver"/> class.
 /// </summary>
 /// <param name="serviceName">The name of the Service Fabric service which this instance will resolve.</param>
 /// <param name="queryManager">The fabric query manager.</param>
 /// <param name="loggerFactory">The logger factory.</param>
 public FabricServiceSiloResolver(
     Uri serviceName,
     IFabricQueryManager queryManager,
     ILoggerFactory loggerFactory)
 {
     this.serviceName            = serviceName;
     this.queryManager           = queryManager;
     this.log                    = new LoggerWrapper <FabricServiceSiloResolver>(loggerFactory);
     this.partitionChangeHandler = this.OnPartitionChange;
 }
        public OrleansClusterResolverTests(ITestOutputHelper output)
        {
            this.serviceName = new Uri("fabric:/test/robust/coffee");

            var first = new ServicePartitionList
            {
                new MockPartition(ServiceKind.Stateful, null, HealthState.Ok, ServicePartitionStatus.Ready)
            };

            this.queryManager = Substitute.For <IFabricQueryManager>();
            this.log          = new TestOutputLogger(output);
        }