示例#1
0
 public RegisterCommandHandler(
     ISportsBettingDbContext dbContext,
     ICommandHandler <PasswordCommand, string> encryptPasswordHandler)
 {
     this.dbContext = dbContext;
     this.encryptPasswordHandler = encryptPasswordHandler;
 }
 public UpdateOddCommandHandler(
     ICache <Odd> oddsCache,
     ISportsBettingDbContext dbContext,
     IQueryHandler <EntitiesByIdQuery <Odd>, IEnumerable <Odd> > oddByIdHandler)
 {
     this.oddsCache      = oddsCache;
     this.dbContext      = dbContext;
     this.oddByIdHandler = oddByIdHandler;
 }
 public UpdateMatchCommandHandler(
     ICache <Match> matchesCache,
     ISportsBettingDbContext dbContext,
     IQueryHandler <EntitiesByIdQuery <Match>, IEnumerable <Match> > matchByIdHandler)
 {
     this.matchesCache     = matchesCache;
     this.dbContext        = dbContext;
     this.matchByIdHandler = matchByIdHandler;
 }
示例#4
0
 public PlaceBetCommandHandler(
     ISportsBettingDbContext dbContext,
     ICommandHandler <UpdateAccountCommand> updateAccountHandler,
     IQueryHandler <AccountByUsernameQuery, Account> accountByUsernameHandler)
 {
     this.dbContext                = dbContext;
     this.updateAccountHandler     = updateAccountHandler;
     this.accountByUsernameHandler = accountByUsernameHandler;
 }
示例#5
0
 public DeleteEntitiesCommandHandler(ICache <TEntity> cache, ISportsBettingDbContext dbContext)
 {
     this.cache     = cache;
     this.dbContext = dbContext;
 }
示例#6
0
 public AccountByUsernameQueryHandler(ISportsBettingDbContext dbContext)
 {
     this.dbContext = dbContext;
 }
 public CreateTournamentCommandHandler(ICache <Tournament> tournamentsCache, ISportsBettingDbContext dbContext)
 {
     this.tournamentsCache = tournamentsCache;
     this.dbContext        = dbContext;
 }
 public WithDeletedEntitiesHandler(ISportsBettingDbContext dbContext)
 {
     this.dbContext = dbContext;
 }
示例#9
0
 public CreateMarketCommandHandler(ICache <Market> marketsCache, ISportsBettingDbContext dbContext)
 {
     this.marketsCache = marketsCache;
     this.dbContext    = dbContext;
 }
 public LoginCommandHandler(ISportsBettingDbContext dbContext)
 {
     this.dbContext = dbContext;
 }
示例#11
0
 public CreateOddCommandHandler(ICache <Odd> oddsCache, ISportsBettingDbContext dbContext)
 {
     this.oddsCache = oddsCache;
     this.dbContext = dbContext;
 }
 public CreateTeamCommandHandler(ICache <Team> teamsCache, ISportsBettingDbContext dbContext)
 {
     this.teamsCache = teamsCache;
     this.dbContext  = dbContext;
 }
示例#13
0
 public Cache(ISportsBettingDbContext dbContext)
 {
     this.dbContext = dbContext;
     this.cache     = new ConcurrentDictionary <int, TEntity>();
 }
 public UpdateAccountCommandHandler(ISportsBettingDbContext dbContext)
 {
     this.dbContext = dbContext;
 }
 public EntityByIdQueryHandler(ISportsBettingDbContext dbContext)
 {
     this.dbContext = dbContext;
 }
示例#16
0
 public DbInitializer(ISportsBettingDbContext dbContext)
 {
     this.dbContext = dbContext;
 }