public StoryService(IConfigurationSettings settings, IUserScoreService userScoreService, IDomainObjectFactory factory, ICategoryRepository categoryRepository, ITagRepository tagRepository, IStoryRepository storyRepository, IMarkAsSpamRepository markAsSpamRepository, ISpamProtection spamProtection, ISpamPostprocessor spamPostprocessor, IEmailSender emailSender, IContentService contentService, IHtmlSanitizer htmlSanitizer, IThumbnail thumbnail, IStoryWeightCalculator[] storyWeightCalculators) { Check.Argument.IsNotNull(settings, "settings"); Check.Argument.IsNotNull(userScoreService, "userScoreService"); Check.Argument.IsNotNull(factory, "factory"); Check.Argument.IsNotNull(categoryRepository, "categoryRepository"); Check.Argument.IsNotNull(tagRepository, "tagRepository"); Check.Argument.IsNotNull(storyRepository, "storyRepository"); Check.Argument.IsNotNull(markAsSpamRepository, "markAsSpamRepository"); Check.Argument.IsNotNull(spamProtection, "spamProtection"); Check.Argument.IsNotNull(spamPostprocessor, "spamPostprocessor"); Check.Argument.IsNotNull(emailSender, "emailSender"); Check.Argument.IsNotNull(contentService, "contentService"); Check.Argument.IsNotNull(htmlSanitizer, "htmlSanitizer"); Check.Argument.IsNotNull(thumbnail, "thumbnail"); Check.Argument.IsNotEmpty(storyWeightCalculators, "storyWeightCalculators"); _settings = settings; _userScoreService = userScoreService; _factory = factory; _categoryRepository = categoryRepository; _tagRepository = tagRepository; _storyRepository = storyRepository; _markAsSpamRepository = markAsSpamRepository; _spamProtection = spamProtection; _spamPostprocessor = spamPostprocessor; _emailSender = emailSender; _contentService = contentService; _htmlSanitizer = htmlSanitizer; _thumbnail = thumbnail; _storyWeightCalculators = storyWeightCalculators; }
public App(ITestService testService, ILogger <App> logger, IRaceService raceService, IUserScoreService userScoreService, IUserScoreDBSearch userScoreDBSearch, IRaceDBSearch raceDBSearch) { _testService = testService; _logger = logger; _raceService = raceService; _userScoreService = userScoreService; _userScoreDBSearch = userScoreDBSearch; _raceDBSearch = raceDBSearch; Console.WriteLine("App constructor"); }
//private IHttpContextAccessor httpContextAccessor; public AccountController(UserManager <IdentityUser> userManager, SignInManager <IdentityUser> signInManager, AppDbContext dbContext, IUserScoreService userScoreService, IPlayerProfileService playerProfile) { this.userManager = userManager; this.signInManager = signInManager; this.dbContext = dbContext; _userScoreService = userScoreService ?? throw new ArgumentNullException(nameof(userScoreService)); _playerProfile = playerProfile; //this.httpContextAccessor = httpContextAccessor; }
public MembershipController(IDomainObjectFactory factory, IUserScoreService userScoreService, IEmailSender emailSender, IBlockedIPCollection blockedIPList) { Check.Argument.IsNotNull(factory, "factory"); Check.Argument.IsNotNull(userScoreService, "userScoreService"); Check.Argument.IsNotNull(emailSender, "emailSender"); Check.Argument.IsNotNull(blockedIPList, "blockedIPList"); _factory = factory; _userScoreService = userScoreService; _emailSender = emailSender; _blockedIPList = blockedIPList; }
public ResultController( IResultRepository resultRepository, IUserBetRepository userBetRepository, JavaScriptSerializer javaScriptSerializer, BetController betController, IUserScoreService userScoreService, ICacheService cacheService) { _resultRepository = resultRepository; _userBetRepository = userBetRepository; _javaScriptSerializer = javaScriptSerializer; _betController = betController; _userScoreService = userScoreService; _cacheService = cacheService; }
public LeaderboardService(IUserScoreService userScoreService) { this.userScoreService = userScoreService; }