public SuicaiNoticing(RequestDelegate next, ILogger <SuicaiNoticing> logger, ILotteryNoticingMessagePublisher lotteryNoticingMessagePublisher, IOrderingApplicationService orderingApplicationService, ILotteryMerchanterApplicationService lotteryMerchanterApplicationService) { _next = next; _logger = logger; _lotteryNoticingMessagePublisher = lotteryNoticingMessagePublisher; _orderingApplicationService = orderingApplicationService; _lotteryMerchanterApplicationService = lotteryMerchanterApplicationService; _crypter = Tripledescrypt.Create(CipherMode.CBC, PaddingMode.PKCS7); }
public XinbaDispatcher(DispatcherConfiguration options, string command, ILogger <XinbaDispatcher <TDispatchMessage> > logger) { _options = options; _logger = logger; _crypter = Tripledescrypt.Create(CipherMode.CBC, PaddingMode.PKCS7); HttpClientHandler handler = new HttpClientHandler() { AutomaticDecompression = DecompressionMethods.Deflate }; _httpClient = new HttpClient(handler) { BaseAddress = new Uri(options.Url) }; }
public SuicaiLotteryDispatcher(DispatcherConfiguration options, ILogger <SuicaiLotteryDispatcher <TExecuteMessage> > logger, string command) { _options = options; _command = command; _logger = logger; _crypter = Tripledescrypt.Create(CipherMode.CBC, PaddingMode.PKCS7); HttpClientHandler handler = new HttpClientHandler() { AutomaticDecompression = System.Net.DecompressionMethods.Deflate }; _httpClient = new HttpClient(handler) { BaseAddress = new Uri(options.Url) }; }