public BulletinController(IBulletinService bulletinService, IBulletinMemberService bulletinMemberService, ICompanyService companyService) { this._bulletinService = bulletinService; this._companyService = companyService; this._bulletinMemberService = bulletinMemberService; }
// /Api/Admin/{action} /// <summary> /// 构造函数 /// </summary> /// <param name="tokenValidationSettings"></param> /// <param name="frontendSettingsOptions"></param> /// <param name="userService"></param> /// <param name="adminUserService"></param> /// <param name="notificationService"></param> /// <param name="permissionService"></param> /// <param name="groupService"></param> /// <param name="roleService"></param> /// <param name="bulletinService"></param> /// <param name="permissionProviders"></param> /// <param name="menuProviders"></param> public AdminController( TokenValidationSettings tokenValidationSettings, IOptions <FrontendSettings> frontendSettingsOptions, IUserService userService, IAdminUserService adminUserService, INotificationService notificationService, IPermissionService permissionService, IGroupService groupService, IRoleService roleService, IBulletinService bulletinService, IEnumerable <IPermissionProvider> permissionProviders, IEnumerable <IMenuProvider> menuProviders) { _tokenValidationSettings = tokenValidationSettings; _frontendSettings = frontendSettingsOptions.Value; _userService = userService; _adminUserService = adminUserService; _notificationService = notificationService; _permissionService = permissionService; _groupService = groupService; _roleService = roleService; _bulletinService = bulletinService; _permissionProviders = permissionProviders; _menuProviders = menuProviders; }
// /Api/Admin/{action} /// <summary> /// Constructor /// </summary> /// <param name="environment"></param> /// <param name="tokenValidationSettings"></param> /// <param name="tokenService"></param> /// <param name="frontendSettingsOptions"></param> /// <param name="avatarSettingsOptions"></param> /// <param name="userService"></param> /// <param name="adminUserService"></param> /// <param name="notificationService"></param> /// <param name="permissionService"></param> /// <param name="groupService"></param> /// <param name="roleService"></param> /// <param name="bulletinService"></param> /// <param name="userActionLogService"></param> /// <param name="moduleMetaDataProviders"></param> /// <param name="menuProviders"></param> /// <param name="logger"></param> public AdminController( IHostingEnvironment environment, TokenValidationSettings tokenValidationSettings, ITokenService tokenService, IOptions <FrontendSettings> frontendSettingsOptions, IOptions <AvatarSettings> avatarSettingsOptions, IUserService userService, IAdminUserService adminUserService, INotificationService notificationService, IPermissionService permissionService, IGroupService groupService, IRoleService roleService, IBulletinService bulletinService, IUserActionLogService userActionLogService, IEnumerable <IModuleMetaDataProvider> moduleMetaDataProviders, IEnumerable <IMenuProvider> menuProviders, ILogger <AdminController> logger) { _environment = environment; _tokenValidationSettings = tokenValidationSettings; _tokenService = tokenService; _frontendSettings = frontendSettingsOptions.Value; _avatarSettings = avatarSettingsOptions.Value; _userService = userService; _adminUserService = adminUserService; _notificationService = notificationService; _permissionService = permissionService; _groupService = groupService; _roleService = roleService; _bulletinService = bulletinService; _userActionLogService = userActionLogService; _moduleMetaDataProviders = moduleMetaDataProviders; _menuProviders = menuProviders; _logger = logger; }
/// <summary> /// Initializes a new instance of the <see cref="DefaultController" /> class. /// </summary> /// <param name="userService">User service for retrieving user data.</param> /// <param name="adwService">Adw service for retrieving ADW data.</param> /// <param name="bulletinService">Bulletin service for retrieving Bulletin data.</param> public DefaultController(IUserService userService, IAdwService adwService, IBulletinService bulletinService, INoticeboardService noticeboardService) : base(userService, adwService) { if (bulletinService == null) { throw new ArgumentNullException("bulletinService"); } BulletinService = bulletinService; if (noticeboardService == null) { throw new ArgumentNullException("noticeboardService"); } NoticeboardService = noticeboardService; }
static BulletinManagement() { IServiceFactory isf = new ServiceFactory(); IBS = isf.createIBulletin(); }
public BaseController() { _bulletinService = new BulletinService(); }
public HomeController(IStringLocalizer <HomeController> localizer, IBulletinService _bulletinService) { this._localizer = localizer; this._bulletinService = _bulletinService; }
public BulletinController(IBulletinService service) { _service = service; }
public BulletinListViewComponent(IBulletinService bulletinService) { this._bulletinService = bulletinService; }
/// <inheritdoc /> public BulletinsController(IBulletinService bulletinService) { _bulletinService = bulletinService; }
public BulletinController(IBulletinService _bulletinService, IStringLocalizer <BulletinController> localizer) { this._bulletinService = _bulletinService; this._localizer = localizer; }