예제 #1
0
 public BansController(UserManager <ApplicationUser> userManager,
                       IMapper mapper,
                       IBanService banService) : base(userManager)
 {
     _mapper     = mapper;
     _banService = banService;
 }
예제 #2
0
 public AdminController(IAdminService adminService,
     IUserService userService,
     IBanService banService,
     IBuildingService buildingService,
     IQueueService queueService,
     IUserBuildingService userBuildingService,
     IUserProductService userProductService,
     IMapService mapService,
     IMarketService marketService,
     IDolarService dolarService,
     IDealService dealService,
     INotificationService notificationService,
     IProductService productService,
     IMessageService messageService,
     IProductRequirementsService productRService)
 {
     _adminService = adminService;
     _userService = userService;
     _banService = banService;
     _buildingService = buildingService;
     _queueService = queueService;
     _userBuildingService = userBuildingService;
     _userProductService = userProductService;
     _mapService = mapService;
     _marketService = marketService;
     _dolarService = dolarService;
     _dealService = dealService;
     _notificationService = notificationService;
     _productService = productService;
     _messageService = messageService;
     _productRService = productRService;
 }
예제 #3
0
 public UserService(LMSContext context,
                    IBanService banService
                    )
 {
     _context    = context;
     _banService = banService;
 }
예제 #4
0
 public PostService(
     IStorageProviderFactory storageProviderFactory,
     ILogger <PostService> logger,
     IOptions <HikkabaConfiguration> settings,
     IBanService banService,
     ICryptoService cryptoService,
     IAudioService audioService,
     IDocumentService documentService,
     IPictureService pictureService,
     IVideoService videoService,
     IThumbnailGenerator thumbnailGenerator,
     IAttachmentCategorizer attachmentCategorizer,
     IMapper mapper,
     ApplicationDbContext context,
     UserManager <ApplicationUser> userManager,
     ICategoryToModeratorService categoryToModeratorService) : base(mapper, context, userManager)
 {
     _storageProvider            = storageProviderFactory.CreateStorageProvider();
     _logger                     = logger;
     _banService                 = banService;
     _hikkabaConfiguration       = settings.Value;
     _cryptoService              = cryptoService;
     _audioService               = audioService;
     _documentService            = documentService;
     _pictureService             = pictureService;
     _videoService               = videoService;
     _thumbnailGenerator         = thumbnailGenerator;
     _attachmentCategorizer      = attachmentCategorizer;
     _categoryToModeratorService = categoryToModeratorService;
 }
예제 #5
0
 public UsersController(IBanService banService,
                        IViewModelMapper <UserDto, UserViewModel> userMapper,
                        IToastNotification toastNotification)
 {
     this.banService        = banService ?? throw new ArgumentNullException(nameof(banService));
     this.userMapper        = userMapper ?? throw new ArgumentNullException(nameof(userMapper));
     this.toastNotification = toastNotification ?? throw new ArgumentNullException(nameof(toastNotification));
 }
예제 #6
0
 public UserManager(IDatabase database, IBanService banService, IReadOnlySerialService serialService,
                    IRolesService rolesService, IHttpContextReader httpContextReader)
 {
     this.database          = database;
     this.banService        = banService;
     this.serialService     = serialService;
     this.rolesService      = rolesService;
     this.httpContextReader = httpContextReader;
 }
예제 #7
0
 public ListController(UserManager <ApplicationUser> userManager,
                       IMapper mapper,
                       IBanService banService,
                       IPostRepository postrepo)
 {
     _userManager = userManager;
     _mapper      = mapper;
     _banService  = banService;
     _postrepo    = postrepo;
 }
예제 #8
0
 public AccountController(
     IAccountService accountService,
     IBanService banService,
     IStringLocalizer <AccountController> localizer,
     ILogger <AccountController> logger)
     : base(localizer, logger)
 {
     _accountService = accountService;
     _banService     = banService;
 }
 public LoginModel(SignInManager <User> signInManager,
                   ILogger <LoginModel> logger,
                   IUserService userService,
                   IBanService banServices)
 {
     _signInManager = signInManager;
     _logger        = logger;
     _banServices   = banServices;
     _userServices  = userService;
 }
예제 #10
0
 public AdminController(
     IPostService postService, ICategoryService categoryService, ICommentService commentService,
     IReplyService replyService, IUserService userService, IRoleService roleService,
     IBanService banService)
 {
     _postService     = postService;
     _categoryService = categoryService;
     _commentService  = commentService;
     _replyService    = replyService;
     _userService     = userService;
     _roleService     = roleService;
     _banService      = banService;
 }
예제 #11
0
 public AccountService(
     IAccountRepository accountRepository,
     IBanService banService,
     IAuthorizationService authorizationService,
     UserManager <AccountIdentity> userManager,
     SignInManager <AccountIdentity> signInManager,
     RoleManager <IdentityRole> roleManager)
 {
     _userManager       = userManager;
     _banService        = banService;
     _signInManager     = signInManager;
     _roleManager       = roleManager;
     _accountRepository = accountRepository;
 }
 public IdentityService(
     GameDBContext ctx,
     IOptions <ApplicationSettings> applicationSettings,
     ISqlManager sqlManager,
     IEncrypter encrypter,
     IBanService banService,
     IEmailService emailService)
 {
     _applicationSettings = applicationSettings.Value;
     _context             = ctx;
     _sqlManager          = sqlManager;
     _encrypter           = encrypter;
     _banService          = banService;
     _emailService        = emailService;
 }
예제 #13
0
		protected internal AdminController(IUserService userService, IProfileService profileService, ISettingsManager settingsManager, ICategoryService categoryService, IForumService forumService, ISearchService searchService, ISecurityLogService securityLogService, IErrorLog errorLog, IBanService banService, IModerationLogService modLogService, IIPHistoryService ipHistoryService, IImageService imageService, IMailingListService mailingListService, IEventDefinitionService eventDefinitionService, IAwardDefinitionService awardDefinitionService, IEventPublisher eventPublisher)
		{
			_userService = userService;
			_profileService = profileService;
			_settingsManager = settingsManager;
			_categoryService = categoryService;
			_forumService = forumService;
			_searchService = searchService;
			_securityLogService = securityLogService;
			_errorLogService = errorLog;
			_banService = banService;
			_moderationLogService = modLogService;
			_ipHistoryService = ipHistoryService;
			_imageService = imageService;
			_mailingListService = mailingListService;
			_eventDefinitionService = eventDefinitionService;
			_awardDefinitionService = awardDefinitionService;
			_eventPublisher = eventPublisher;
		}
예제 #14
0
 protected internal AdminController(IUserService userService, IProfileService profileService, ISettingsManager settingsManager, ICategoryService categoryService, IForumService forumService, ISearchService searchService, ISecurityLogService securityLogService, IErrorLog errorLog, IBanService banService, IModerationLogService modLogService, IIPHistoryService ipHistoryService, IImageService imageService, IMailingListService mailingListService, IEventDefinitionService eventDefinitionService, IAwardDefinitionService awardDefinitionService, IEventPublisher eventPublisher)
 {
     _userService            = userService;
     _profileService         = profileService;
     _settingsManager        = settingsManager;
     _categoryService        = categoryService;
     _forumService           = forumService;
     _searchService          = searchService;
     _securityLogService     = securityLogService;
     _errorLogService        = errorLog;
     _banService             = banService;
     _moderationLogService   = modLogService;
     _ipHistoryService       = ipHistoryService;
     _imageService           = imageService;
     _mailingListService     = mailingListService;
     _eventDefinitionService = eventDefinitionService;
     _awardDefinitionService = awardDefinitionService;
     _eventPublisher         = eventPublisher;
 }
예제 #15
0
 public ThreadService(IMapper mapper,
                      ApplicationDbContext context,
                      IStorageProvider storageProvider,
                      IOptions <HikkabaConfiguration> settings,
                      ICategoryToModeratorService categoryToModeratorService,
                      IBanService banService,
                      ICryptoService cryptoService,
                      IThumbnailGenerator thumbnailGenerator,
                      IAttachmentCategorizer attachmentCategorizer) : base(mapper)
 {
     _mapper                     = mapper;
     _context                    = context;
     _storageProvider            = storageProvider;
     _hikkabaConfiguration       = settings.Value;
     _categoryToModeratorService = categoryToModeratorService;
     _banService                 = banService;
     _cryptoService              = cryptoService;
     _thumbnailGenerator         = thumbnailGenerator;
     _attachmentCategorizer      = attachmentCategorizer;
 }
 public AdminApiController(ISettingsManager settingsManager, ICategoryService categoryService, IForumService forumService, IUserService userService, ISearchService searchService, IProfileService profileService, IUserRetrievalShim userRetrievalShim, IImageService imageService, IBanService banService, IMailingListService mailingListService, IEventDefinitionService eventDefinitionService, IAwardDefinitionService awardDefinitionService, IEventPublisher eventPublisher, IIPHistoryService ipHistoryService, ISecurityLogService securityLogService, IModerationLogService moderationLogService, IErrorLog errorLog, IServiceHeartbeatService serviceHeartbeatService)
 {
     _settingsManager        = settingsManager;
     _categoryService        = categoryService;
     _forumService           = forumService;
     _userService            = userService;
     _searchService          = searchService;
     _profileService         = profileService;
     _userRetrievalShim      = userRetrievalShim;
     _imageService           = imageService;
     _banService             = banService;
     _mailingListService     = mailingListService;
     _eventDefinitionService = eventDefinitionService;
     _awardDefinitionService = awardDefinitionService;
     _eventPublisher         = eventPublisher;
     _ipHistoryService       = ipHistoryService;
     _securityLogService     = securityLogService;
     _moderationLogService   = moderationLogService;
     _errorLog = errorLog;
     _serviceHeartbeatService = serviceHeartbeatService;
 }
예제 #17
0
 public BanServiceTests()
 {
     this.db = DbGenerator.GetDbContext();
     DbSeeder.SeedNormalUsers(this.db);
     this.banService = new BanService(this.db);
 }
예제 #18
0
 public BanController(IBanService banService)
 {
     this.banService = banService;
 }
예제 #19
0
 public AccountController(IAccountService accountService, IUserService userService, IBanService banService)
 {
     _accountService = accountService;
     _userService    = userService;
     _banService     = banService;
 }
예제 #20
0
 public ViewerController(IBanService banService)
 {
     _banService = banService;
 }
 public TestableAdminController(IUserService userService, IProfileService profileService, ISettingsManager settingsManager, ICategoryService categoryService, IForumService forumService, ISearchService searchService, ISecurityLogService securityLogService, IErrorLog errorLog, IBanService banService, IModerationLogService modLogService, IIPHistoryService ipHistoryService, IImageService imageService, IMailingListService mailingListService, IEventDefinitionService eventDefinitonService, IAwardDefinitionService awardDefinitionService, IEventPublisher eventPublisher) : base(userService, profileService, settingsManager, categoryService, forumService, searchService, securityLogService, errorLog, banService, modLogService, ipHistoryService, imageService, mailingListService, eventDefinitonService, awardDefinitionService, eventPublisher)
 {
 }
예제 #22
0
 public LoggedBanService(IBanService service)
 {
     _banService = service;
 }
예제 #23
0
 public BanController(ILogger <BanController> logger, IBanService banService, IBanSourceService banSourceService)
 {
     _logger           = logger;
     _banService       = banService;
     _banSourceService = banSourceService;
 }
예제 #24
0
 public BanController(IBanService banService)
 {
     _banService = banService;
 }
예제 #25
0
 public BanController(IBanService banService, IUserService userService)
 {
     _banService  = banService;
     _userService = userService;
 }
예제 #26
0
			public TestableAdminController(IUserService userService, IProfileService profileService, ISettingsManager settingsManager, ICategoryService categoryService, IForumService forumService, ISearchService searchService, ISecurityLogService securityLogService, IErrorLog errorLog, IBanService banService, IModerationLogService modLogService, IIPHistoryService ipHistoryService, IImageService imageService, IMailingListService mailingListService, IEventDefinitionService eventDefinitonService, IAwardDefinitionService awardDefinitionService, IEventPublisher eventPublisher) : base(userService, profileService, settingsManager, categoryService, forumService, searchService, securityLogService, errorLog, banService, modLogService, ipHistoryService, imageService, mailingListService, eventDefinitonService, awardDefinitionService, eventPublisher) { }
예제 #27
0
 public BanController(IBanService banService, IBanSourceService banSourceService)
 {
     _banService       = banService;
     _banSourceService = banSourceService;
 }
예제 #28
0
 public BanController(IBanService banTable)
 {
     _banTable = banTable;
 }