コード例 #1
0
ファイル: SuicaiNoticing.cs プロジェクト: dengxuan/Fighting
 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);
 }
コード例 #2
0
ファイル: XinbaDispatcher.cs プロジェクト: dengxuan/Fighting
        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)
            };
        }
コード例 #3
0
        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)
            };
        }