コード例 #1
0
ファイル: BansController.cs プロジェクト: magicxor/Hikkaba
 public BansController(UserManager <ApplicationUser> userManager,
                       IMapper mapper,
                       IBanService banService) : base(userManager)
 {
     _mapper     = mapper;
     _banService = banService;
 }
コード例 #2
0
ファイル: AdminController.cs プロジェクト: kamlys/Game
 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
ファイル: PostService.cs プロジェクト: mdockal/Hikkaba
 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
ファイル: UserManager.cs プロジェクト: filippyziak/_MTA-Panel
 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;
 }
コード例 #9
0
 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;
 }
コード例 #12
0
 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
ファイル: AdminController.cs プロジェクト: uzigula/POPForums
 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
ファイル: ThreadService.cs プロジェクト: magicxor/Hikkaba
 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;
 }
コード例 #16
0
 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;
 }
コード例 #21
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)
 {
 }
コード例 #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
ファイル: BanController.cs プロジェクト: bobbahbrown/CentCom
 public BanController(IBanService banService, IBanSourceService banSourceService)
 {
     _banService       = banService;
     _banSourceService = banSourceService;
 }
コード例 #28
0
ファイル: BanController.cs プロジェクト: kamlys/Game
 public BanController(IBanService banTable)
 {
     _banTable = banTable;
 }