public BetServices(IMongoDbContext context, IOfferService offerService, IAccountService AccountS, IBetCounterService count, IBetCounterService betcser) { _context = context; _bet = context.GetCollection <Bet>(typeof(Bet).Name); _Offer = offerService; _Event = context.GetCollection <Event>(typeof(Event).Name); _account = context.GetCollection <Account>(typeof(Account).Name); _AccountS = AccountS; _count = count; _BetCountCol = context.GetCollection <BetCounter>(typeof(BetCounter).Name);; _Layoffer = _context.GetCollection <LayOffer>(typeof(LayOffer).Name); _Backoffer = _context.GetCollection <BackOffer>(typeof(BackOffer).Name); _involved = _context.GetCollection <InvolvedLayBets>(typeof(InvolvedLayBets).Name); _involvedB = _context.GetCollection <InvolvedBackBets>(typeof(InvolvedBackBets).Name); _end = _context.GetCollection <Ended>(typeof(Ended).Name); }
public OfferService(IMongoDbContext context, IAccountService accountService, IMapper mapper, IEventServices eventserv, IBetCounterService betcser ) { _context = context; _Layoffer = _context.GetCollection <LayOffer>(typeof(LayOffer).Name); _Bet = _context.GetCollection <Bet>(typeof(Bet).Name); _Backoffer = _context.GetCollection <BackOffer>(typeof(BackOffer).Name); _Account = accountService; _mapper = mapper; _involved = _context.GetCollection <InvolvedLayBets>(typeof(InvolvedLayBets).Name); _involvedB = _context.GetCollection <InvolvedBackBets>(typeof(InvolvedBackBets).Name); _eventserv = eventserv; _notif = _context.GetCollection <Notification>(typeof(Notification).Name); _betcser = betcser; }
public OfferController(IOfferService offerservice, IMapper mapper, IAccountService accountService, IEventServices eventService, IHubContext <BetSystemHub> hub, IHubContext <LiveGameHub> Lhub, IServiceProvider serviceProvider, IScheduler scheduler, IConnectionService conser, IBetCounterService BetCSer) { _OfferService = offerservice; _mapper = mapper; _accountService = accountService; _eventService = eventService; _BetSystemHub = hub; _ServiceProvider = serviceProvider; _scheduler = scheduler; _BetCSer = BetCSer; _conser = conser; _LiveGameHub = Lhub; }