public JackpotMatchManager ( IRepoServiceFactory repoServiceFactory, IBetService betService, IHashService hashService, IRandomService randomService, IJackpotDraftService draftService, ILogServiceFactory logServiceFactory, IBetOrWithdrawQueueManager betOrWithdrawQueueManager, IGameModeSettingService gameModeSettingService, IBetHubConnections betHubConnections, IMatchHubConnections matchHubConnections, IDiscordService discordService ) : base(repoServiceFactory, betService, hashService, randomService) { _repoServiceFactory = repoServiceFactory; _betService = betService; _draftService = draftService; _matchHubConnections = matchHubConnections; _discordService = discordService; _betHubConnections = betHubConnections; _gameModeSettingService = gameModeSettingService; _betOrWithdrawQueueManager = betOrWithdrawQueueManager; _logService = logServiceFactory.CreateLogger <JackpotMatchManager>(); _betQueue = new BetQueue(); SetUpGameModeAndSetting().Wait(); }
public CoinFlipManager ( IRepoServiceFactory repoServiceFactory, ICoinFlipService coinFlipService, IJackpotDraftService draftService, ICoinFlipHubConnections coinFlipHubConnections, IBetOrWithdrawQueueManager betOrWithdrawQueueManager, IBetHubConnections betHubConnections, ILogServiceFactory logServiceFactory, IBetService betService, IMongoJackpotRepoService jackpotRepoService, IHotStatusManager hotStatusManager, IDiscordService discordService ) { _repoServiceFactory = repoServiceFactory; _coinFlipService = coinFlipService; _draftService = draftService; _coinFlipHubConnections = coinFlipHubConnections; _betOrWithdrawQueueManager = betOrWithdrawQueueManager; _betHubConnections = betHubConnections; _betService = betService; _jackpotRepoService = jackpotRepoService; _hotStatusManager = hotStatusManager; _discordService = discordService; _logService = logServiceFactory.CreateLogger <CoinFlipManager>(); _betQueue = new BetQueue(); Setup().Wait(); }
public OfferManager( ISteamHubConnections steamHubConnections, IOfferService offerService, RpcSteamListener steamListener, ILogServiceFactory logger, IGrpcServiceFactory factory, IUserService userService, IRepoServiceFactory repoServiceFactory ) { _rakeItemRepoService = repoServiceFactory.RakeItemRepoService; _steamServiceClient = factory.GetSteamServiceClient(new SteamInventoryCacheManager()); _steamHubConnections = steamHubConnections; _offerService = offerService; _userService = userService; _logger = logger.CreateLogger <OfferManager>(); steamListener.OnOfferStatusChanged += async(sender, offer) => { _logger.Info($"Received statuscode {offer.StatusCode}"); try { await HandleOffer(offer); } catch (System.Exception e) { _logger.Error(offer.SteamId, null, e, new Dictionary <string, object> { { "Offer", offer } }); } }; }
public TicketServiceClientWrapper( TicketService.TicketServiceClient ticketServiceClient, ILogServiceFactory logServiceFactory ) : base(logServiceFactory.CreateLogger <TicketServiceClientWrapper>()) { _ticketServiceClient = ticketServiceClient; }
public HistoryServiceClientWrapper ( Bettingv1HisotryService.Bettingv1HisotryServiceClient histotyClient, ILogServiceFactory logServiceFactory ) : base(logServiceFactory.CreateLogger <HistoryServiceClientWrapper>()) { _histotyClient = histotyClient; }
public ChatServiceClientWrapper ( ChatService.ChatServiceClient chatServiceClient, ILogServiceFactory logServiceFactory ) : base(logServiceFactory.CreateLogger <ChatServiceClientWrapper>()) { _chatServiceClient = chatServiceClient; }
public DiscordServiceClientWrapper ( DiscordService.DiscordServiceClient discordService, ILogServiceFactory logServiceFactory ) : base(logServiceFactory.CreateLogger <DiscordServiceClientWrapper>()) { _discordService = discordService; }
public SteamServiceClientWrapper ( SteamService.SteamServiceClient steamServiceClient, ISteamInventoryCacheManager cacheManager, ILogServiceFactory logServiceFactory ) : base(logServiceFactory.CreateLogger <SteamServiceClientWrapper>()) { _steamServiceClient = steamServiceClient; _cacheManager = cacheManager; }
public OfferService(IRepoServiceFactory factory, ITransactionFactory transactionFactory, ILogServiceFactory logServiceFactory) { _itemDescRepoServcice = factory.ItemDescriptionRepoService; _botRepoService = factory.BotRepoService; _userRepoService = factory.UserRepoService; _itemRepoService = factory.ItemRepoService; _offerRepoService = factory.OfferTranascrionRepoService; _itemInOfferTransactionRepoService = factory.ItemInOfferTransactionRepoService; _transactionFactory = transactionFactory; _logService = logServiceFactory.CreateLogger <OfferService>(); _steamLock = new TimeSpan(7, 1, 0, 0); }
public SteamService ( IGrpcServiceFactory grpcServiceFactory, IRepoServiceFactory repoServiceFactory, IBotService botService, ILogServiceFactory factory, IOfferService offerService, ISteamInventoryCacheManager cacheManager ) { _logService = factory.CreateLogger<SteamService>(); _repoServiceFactory = repoServiceFactory; _botService = botService; _offerService = offerService; _steamServiceClient = grpcServiceFactory.GetSteamServiceClient(cacheManager); }
public OpSkinsApi ( string steamLyticsApiKey, IRepoServiceFactory repoServiceFactory, ILogServiceFactory logServiceFactory, IHttpRequestService httpRequestService, ISettingRepoService settingRepoService, ISteamMarketScraperService steamMarketScraperService ) { _apiKey = steamLyticsApiKey; _repoServiceFactory = repoServiceFactory; _logger = logServiceFactory.CreateLogger <OpSkinsApi>(); _httpRequestService = httpRequestService; _settingRepoService = settingRepoService; _steamMarketScraperService = steamMarketScraperService; }
public CoinFlipController ( ICoinFlipService coinFlipService, IDatabaseConnectionFactory connectionFactory, IItemService itemService, IRepoServiceFactory repoServiceFactory, ICoinFlipManager coinFlipManager, ILogServiceFactory logServiceFactory, IHotStatusManager hotStatusManager ) { _logService = logServiceFactory.CreateLogger <CoinFlipController>(); _coinFlipService = coinFlipService; _itemService = itemService; _repoServiceFactory = repoServiceFactory; _coinFlipManager = coinFlipManager; _hotStatusManager = hotStatusManager; }
public CsgoFastApi ( string steamLyticsApiKey, IRepoServiceFactory repoServiceFactory, ILogServiceFactory logServiceFactory, IHttpRequestService httpRequestService, ISettingRepoService settingRepoService, ISteamMarketScraperService steamMarketScraperService, IJsonRequestParser jsonRequestParser ) { _apiKey = steamLyticsApiKey; _repoServiceFactory = repoServiceFactory; _logger = logServiceFactory.CreateLogger <CsgoFastApi>(); _httpRequestService = httpRequestService; _settingRepoService = settingRepoService; _steamMarketScraperService = steamMarketScraperService; _jsonRequestParser = jsonRequestParser; }
public DiscordService(IDiscordAuthService discordAuthService, IGrpcServiceFactory grpcServiceFactory, ILogServiceFactory logger) { _logger = logger.CreateLogger <DiscordService>(); AuthService = discordAuthService; _discrodClientWrapper = grpcServiceFactory.GetDiscordSercviceClient(); }
public JackpotDraftService(IRepoServiceFactory repoServiceFactory, ILogServiceFactory logServiceFactory, IRakeService rakeService) { _repoServiceFactory = repoServiceFactory; _rakeService = rakeService; _logService = logServiceFactory.CreateLogger <JackpotDraftService>(); }
public DiscordController(IDiscordService discordService, IGrpcServiceFactory grpcServiceFactory, ILogServiceFactory factory) { _discordService = discordService; _discordSercviceClient = grpcServiceFactory.GetDiscordSercviceClient(); _logger = factory.CreateLogger <DiscordController>(); }
public GrpcService(IGrpcServiceFactory grpcServiceFactory, ILogServiceFactory logServiceFactory) { _grpcServiceFactory = grpcServiceFactory; _logService = logServiceFactory.CreateLogger <GrpcService>(); }
public RpcSteamListener(ILogServiceFactory logServiceFactory) { _logService = logServiceFactory.CreateLogger <RpcSteamListener>(); }
public HubBase(ILogServiceFactory logService, IHubConnectionManager hubConnectionManager) { _hubConnectionManager = hubConnectionManager; _logService = logService.CreateLogger <HubBase <T> >(); }