Ejemplo n.º 1
0
 public BulletinController(IBulletinService bulletinService,
                           IBulletinMemberService bulletinMemberService, ICompanyService companyService)
 {
     this._bulletinService       = bulletinService;
     this._companyService        = companyService;
     this._bulletinMemberService = bulletinMemberService;
 }
Ejemplo n.º 2
0
 // /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;
 }
Ejemplo n.º 3
0
 // /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;
 }
Ejemplo n.º 4
0
        /// <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;
        }
Ejemplo n.º 5
0
        static BulletinManagement()
        {
            IServiceFactory isf = new ServiceFactory();

            IBS = isf.createIBulletin();
        }
Ejemplo n.º 6
0
 public BaseController()
 {
     _bulletinService = new BulletinService();
 }
Ejemplo n.º 7
0
 public HomeController(IStringLocalizer <HomeController> localizer, IBulletinService _bulletinService)
 {
     this._localizer       = localizer;
     this._bulletinService = _bulletinService;
 }
Ejemplo n.º 8
0
 public BulletinController(IBulletinService service)
 {
     _service = service;
 }
Ejemplo n.º 9
0
 public BulletinListViewComponent(IBulletinService bulletinService)
 {
     this._bulletinService = bulletinService;
 }
Ejemplo n.º 10
0
 /// <inheritdoc />
 public BulletinsController(IBulletinService bulletinService)
 {
     _bulletinService = bulletinService;
 }
Ejemplo n.º 11
0
 public BulletinController(IBulletinService _bulletinService, IStringLocalizer <BulletinController> localizer)
 {
     this._bulletinService = _bulletinService;
     this._localizer       = localizer;
 }