public DataServiceBase(IDataServiceConfig config, IHystrixCommandFactory hystrixCommandFactory, ILogger <IDataService <T> > logger) { _config = config ?? throw new ArgumentNullException(nameof(config)); _hystrixCommandFactory = hystrixCommandFactory ?? throw new ArgumentNullException(nameof(hystrixCommandFactory)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public HystrixMetricsStreamEndpoint(IHystrixCommandFactory commandFactory, int pollingInterval) { if (pollingInterval < 100) { throw new ArgumentOutOfRangeException(nameof(pollingInterval), "Parameter pollingInterval needs to be greater than or equal to 100"); } this.commandFactory = commandFactory ?? throw new ArgumentNullException(nameof(commandFactory)); this.pollingInterval = pollingInterval; }
public TransformationServices(IHystrixCommandFactory hystrixCommandFactory) { hystrixCommand = hystrixCommandFactory.GetHystrixCommand("TestGroup", "TestCommand"); }
public HystrixMiddleware(Middleware <HandleContext> actualHandle, IHystrixCommandFactory commandFactory) { this.commandFactory = commandFactory; this.actualHandle = actualHandle; }
public HelloController(IHystrixCommandFactory hystrixCommandFactory) { hystrixCommand = hystrixCommandFactory.GetHystrixCommand("TestGroup", "TestCommand"); }
public HystrixMetricsStreamEndpoint(IHystrixCommandFactory commandFactory, HystrixOptions options) : this(commandFactory, options?.MetricsStreamPollIntervalInMilliseconds ?? 500) { }
public JsonServices(IHystrixCommandFactory hystrixCommandFactory) { hystrixCommand = hystrixCommandFactory.GetHystrixCommand("JsonGroup", "JsonCommand"); }
public HystrixController(IHystrixCommandFactory hystrixCommandFactory, IHttpClientFactory httpClientFactory) { this.hystrixCommand = hystrixCommandFactory.GetHystrixCommand("GroupKey", "CommandKey"); this.httpClientFactory = httpClientFactory; }
public HttpRepoServiceBase(IHttpRepoServiceConfig config, IHystrixCommandFactory hystrixCommandFactory, ILogger <IDataService <T> > logger) : base((IDataServiceConfig)config, hystrixCommandFactory, logger) { }
public MongoHttpRepoService(IMongoHttpRepoServiceConfig config, IHystrixCommandFactory hystrixCommandFactory, ILogger <IDataService <T> > logger) : base((IHttpRepoServiceConfig)config, hystrixCommandFactory, logger) { client = new MongoClient(config.ConnectionString); db = client.GetDatabase(config.DatabaseName); }
public XmlServices(IHystrixCommandFactory hystrixCommandFactory) { hystrixCommand = hystrixCommandFactory.GetHystrixCommand("XmlGroup", "XmlCommand"); }