예제 #1
0
 public HintController(IAttemptRepository repository, IHubContext <HintsHub> hintsHub,
                       IHintRepository hintRepository)
 {
     _repository     = repository;
     _hintsHub       = hintsHub;
     _hintRepository = hintRepository;
 }
예제 #2
0
 public HintController(IHintRepository _hintRepository, IUserRepository _userRepository, IMediaRepository _mediaRepository, IVoteRepository _voteRepository, IConfiguration _config)
 {
     hintRepository  = _hintRepository;
     userRepository  = _userRepository;
     mediaRepository = _mediaRepository;
     voteRepository  = _voteRepository;
     config          = _config;
 }
예제 #3
0
 public PostController(IPostRepository _postRepository, ITagRepository _tagRepository, IMediaRepository _mediaRepository, IUserRepository _userRepository, ILocationRepository _locationRepository, IVoteRepository _voteRepository, IReportingRepository _reportingRepository, IHintRepository _hintRepository)
 {
     postRepository      = _postRepository;
     mediaRepository     = _mediaRepository;
     userRepository      = _userRepository;
     locationRepository  = _locationRepository;
     voteRepository      = _voteRepository;
     reportingRepository = _reportingRepository;
     tagRepository       = _tagRepository;
     hintRepository      = _hintRepository;
 }
예제 #4
0
 public CachingRepository(IHintRepository repository, TimeSpan cacheTime)
 {
     _repository = repository;
     _cache      = new MemoryCache(new MemoryCacheOptions());
     _cacheTime  = cacheTime;
 }
예제 #5
0
 public IndexModel(IAttemptRepository attemptRepository, IHintRepository hintRepository)
 {
     _attemptRepository = attemptRepository;
     _hintRepository    = hintRepository;
 }
 public AppController(IHintRepository repository, IConfigurationRoot config)
 {
     _config     = config;
     _repository = repository;
 }
예제 #7
0
 public HintsController(IHintRepository repository)
 {
     _repository = repository;
 }