Пример #1
0
        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();
        }
Пример #2
0
        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();
        }
Пример #3
0
        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 }
                    });
                }
            };
        }
Пример #4
0
 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;
 }
Пример #8
0
 public SteamServiceClientWrapper
 (
     SteamService.SteamServiceClient steamServiceClient,
     ISteamInventoryCacheManager cacheManager,
     ILogServiceFactory logServiceFactory
 )
     : base(logServiceFactory.CreateLogger <SteamServiceClientWrapper>())
 {
     _steamServiceClient = steamServiceClient;
     _cacheManager       = cacheManager;
 }
Пример #9
0
 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);
 }
Пример #10
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);
 }
Пример #11
0
 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;
 }
Пример #12
0
 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;
 }
Пример #13
0
 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;
 }
Пример #14
0
 public DiscordService(IDiscordAuthService discordAuthService, IGrpcServiceFactory grpcServiceFactory, ILogServiceFactory logger)
 {
     _logger               = logger.CreateLogger <DiscordService>();
     AuthService           = discordAuthService;
     _discrodClientWrapper = grpcServiceFactory.GetDiscordSercviceClient();
 }
Пример #15
0
 public JackpotDraftService(IRepoServiceFactory repoServiceFactory, ILogServiceFactory logServiceFactory, IRakeService rakeService)
 {
     _repoServiceFactory = repoServiceFactory;
     _rakeService        = rakeService;
     _logService         = logServiceFactory.CreateLogger <JackpotDraftService>();
 }
Пример #16
0
 public DiscordController(IDiscordService discordService, IGrpcServiceFactory grpcServiceFactory, ILogServiceFactory factory)
 {
     _discordService        = discordService;
     _discordSercviceClient = grpcServiceFactory.GetDiscordSercviceClient();
     _logger = factory.CreateLogger <DiscordController>();
 }
Пример #17
0
 public GrpcService(IGrpcServiceFactory grpcServiceFactory, ILogServiceFactory logServiceFactory)
 {
     _grpcServiceFactory = grpcServiceFactory;
     _logService         = logServiceFactory.CreateLogger <GrpcService>();
 }
Пример #18
0
 public RpcSteamListener(ILogServiceFactory logServiceFactory)
 {
     _logService = logServiceFactory.CreateLogger <RpcSteamListener>();
 }
Пример #19
0
 public HubBase(ILogServiceFactory logService, IHubConnectionManager hubConnectionManager)
 {
     _hubConnectionManager = hubConnectionManager;
     _logService           = logService.CreateLogger <HubBase <T> >();
 }