コード例 #1
0
 public BaseMenuController(IMenuService menuService, IMapper mapper, IUserDepartmentServices userDepartmentServices, IUserServices userServices)
 {
     _menuService            = menuService;
     _mapper                 = mapper;
     _userDepartmentServices = userDepartmentServices;
     _userServices           = userServices;
 }
コード例 #2
0
        public OrgService(
            IDbContextScopeFactory dbContextScopeFactory,
            IDepartmentTypeRepository departmentTypeRepository,
            IUserRepository userRepository,
            IUserDepartmentRepository userDepartmentRepository,
            ISignatureRepository signatureRepository,
            INotificationSettingRepository notificationSettingRepository,
            IUserJobTitleRepository userJobTitleRepository,
            IDepartmentServices departmentServices,
            IUserDepartmentServices userDepartmentServices,
            IMapper mapper,
            IUserServices userServices)
        {
            _dbContextScopeFactory         = dbContextScopeFactory;
            _departmentTypeRepository      = departmentTypeRepository;
            _userDepartmentRepository      = userDepartmentRepository;
            _userRepository                = userRepository;
            _signatureRepository           = signatureRepository;
            _notificationSettingRepository = notificationSettingRepository;
            _userJobTitleRepository        = userJobTitleRepository;

            _mapper = mapper;

            _departmentServices     = departmentServices;
            _userDepartmentServices = userDepartmentServices;
            _userServices           = userServices;
        }
コード例 #3
0
 public ApiCoreController(ILoggerServices loggerServices, IUserServices userService,
                          IUserDepartmentServices userDepartmentServices)
 {
     _loggerServices         = loggerServices;
     _userService            = userService;
     _userDepartmentServices = userDepartmentServices;
 }
コード例 #4
0
 public MobileOrgController(ILoggerServices loggerServices,
                            IUserServices userService,
                            IUserDepartmentServices userDepartmentServices,
                            IOrgService orgService) :
     base(loggerServices, userService, userDepartmentServices)
 {
     _orgService = orgService;
 }
コード例 #5
0
 public NotificationController(ILoggerServices loggerServices,
                               IUserServices userService,
                               IUserDepartmentServices userDepartmentServices,
                               INotificationServices notificationServices) :
     base(loggerServices, userService, userDepartmentServices)
 {
     _notificationServices = notificationServices;
 }
コード例 #6
0
 public SsoController(ILoggerServices loggerServices, IUserServices userService,
                      IUserDepartmentServices userDepartmentServices,
                      IUserDeviceServices userDeviceServices, IOrgService orgService)
     : base(loggerServices, userService, userDepartmentServices)
 {
     _orgSevice          = orgService;
     _userDeviceServices = userDeviceServices;
 }
コード例 #7
0
 public NotificationTypeController(
     ILoggerServices loggerServices,
     IUserServices userService,
     IUserDepartmentServices userDepartmentServices,
     INotificationTypeService notificationTypeService
     ) : base(loggerServices, userService, userDepartmentServices)
 {
     _notificationTypeService = notificationTypeService;
 }
コード例 #8
0
 public SystemConfigController(
     ILoggerServices loggerServices,
     IUserServices userService,
     IUserDepartmentServices userDepartmentServices,
     ISystemConfigServices systemConfigService
     ) : base(loggerServices, userService, userDepartmentServices)
 {
     _systemConfigService = systemConfigService;
 }
コード例 #9
0
 public OrgController(ILoggerServices loggerServices,
                      IUserServices userService,
                      IUserDepartmentServices userDepartmentServices,
                      IDepartmentServices departmentServices,
                      IOrgService orgService) :
     base(loggerServices, userService, userDepartmentServices)
 {
     _orgService         = orgService;
     _departmentServices = departmentServices;
 }
コード例 #10
0
 public ApisController(ILoggerServices loggerServices
                       , IUserServices userService
                       , IUserDepartmentServices userDepartmentServices
                       , IProjectService projectService
                       , IMapper mapper
                       ) : base(loggerServices, userService, userDepartmentServices)
 {
     _projectService         = projectService;
     _mapper                 = mapper;
     _userdepartmentServices = userDepartmentServices;
 }
コード例 #11
0
 public TaskItemAssignService(ILoggerServices loggerServices, IDbContextScopeFactory dbContextScopeFactory, IMapper mapper, ITaskItemAssignRepository taskItemAssignRepository, ITaskItemRepository taskItemRepository, IUserServices userServices, IUserDepartmentServices userDepartmentServices, ITaskItemProcessHistoryRepository taskItemProcessHistoryRepository, IAttachmentRepository attachmentRepository)
 {
     _loggerServices        = loggerServices;
     _dbContextScopeFactory = dbContextScopeFactory;
     _mapper                           = mapper;
     _objectRepository                 = taskItemAssignRepository;
     _userServices                     = userServices;
     _userDepartmentServices           = userDepartmentServices;
     _taskItemProcessHistoryRepository = taskItemProcessHistoryRepository;
     _attachmentRepository             = attachmentRepository;
     _taskItemRepository               = taskItemRepository;
 }
コード例 #12
0
 public MobileSignatureController(ILoggerServices loggerServices,
                                  IUserServices userService,
                                  IUserDepartmentServices userDepartmentServices,
                                  IMapper mapper,
                                  ISignatureServices signatureServices,
                                  INotificationServices notificationServices) :
     base(loggerServices, userService, userDepartmentServices)
 {
     _signatureServices    = signatureServices;
     _mapper               = mapper;
     _notificationServices = notificationServices;
 }
コード例 #13
0
        /// <summary>
        ///     Registers the type mappings with the Unity container.
        /// </summary>
        /// <param name="container">The unity container to configure.</param>
        /// <remarks>
        ///     There is no need to register concrete types such as controllers or
        ///     API controllers (unless you want to change the defaults), as Unity
        ///     allows resolving a concrete type even if it was not previously
        ///     registered.
        /// </remarks>
        public static void RegisterTypes(IUnityContainer container)
        {
            UnityHelper.BuildUnityContainer(container);

            Core.Kernel.AmbientScope.UnityDependencyResolver.DependencyResolve(container);

            // container.RegisterType<IDbContextFactory, DefaultDbContextFactory>(new PerResolveLifetimeManager());

            foreach (var task in container.ResolveAll <IUnityDependencyResolver>())
            {
                task.ResolveDependency(container);
            }

            //  fetch info
            IUserDepartmentServices userDeptServices = (IUserDepartmentServices)container.Resolve(typeof(IUserDepartmentServices));

            userDeptServices.GetCachedUserDepartmentDtos();
        }
コード例 #14
0
 public ProjectFilterParamController(ILoggerServices loggerServices, IUserServices userService, IUserDepartmentServices userDepartmentServices, IProjectFilterParamService projectFilterParamService, IMapper mapper, ICategoryService categoryService) : base(loggerServices, userService, userDepartmentServices)
 {
     _projectFilterParamService = projectFilterParamService;
     _categoryService           = categoryService;
     _mapper = mapper;
 }
コード例 #15
0
 public BaseTaskController(ILoggerServices loggerServices,
                           IUserServices userService,
                           IUserDepartmentServices userDepartmentServices) : base(loggerServices, userService, userDepartmentServices)
 {
 }
コード例 #16
0
 public TaskItemAssignController(ILoggerServices loggerServices, IUserServices userService, IUserDepartmentServices userDepartmentServices, ITaskItemAssignService taskItemAssignService, IMapper mapper, ISettingsService settingsService) : base(loggerServices, userService, userDepartmentServices)
 {
     _taskItemAssignService = taskItemAssignService;
     _mapper          = mapper;
     _settingsService = settingsService;
 }
コード例 #17
0
 public SystemManagementController(ILoggerServices loggerServices, IUserServices userService, IUserDepartmentServices userDepartmentServices, IProjectFilterParamService projectFilterParamService, IMapper mapper, ISettingsService settingsService) : base(loggerServices, userService, userDepartmentServices)
 {
     _projectFilterParamService = projectFilterParamService;
     _settingsService           = settingsService;
     _mapper = mapper;
 }
コード例 #18
0
 /// <summary>
 /// ctor
 /// </summary>
 /// <param name="menuService"></param>
 /// <param name="mapper"></param>
 public MenuController(IMenuService menuService, IMapper mapper,
                       INavNodeService navNodeService, IUserDepartmentServices userDepartmentServices, IUserServices userServices, IGroupServices groupServices) : base(menuService, mapper, userDepartmentServices, userServices)
 {
     _navNodeService = navNodeService;
     _groupServices  = groupServices;
 }
コード例 #19
0
 public ProjectController(ILoggerServices loggerServices, IUserServices userService, IUserDepartmentServices userDepartmentServices, IProjectService projectService,
                          IMapper mapper, ICategoryService categoryService, IAttachmentService attachmentService, ITaskItemService taskItemService) : base(loggerServices, userService, userDepartmentServices)
 {
     _projectService    = projectService;
     _taskItemService   = taskItemService;
     _mapper            = mapper;
     _categoryService   = categoryService;
     _attachmentService = attachmentService;
 }