public BaseMenuController(IMenuService menuService, IMapper mapper, IUserDepartmentServices userDepartmentServices, IUserServices userServices)
 {
     _menuService            = menuService;
     _mapper                 = mapper;
     _userDepartmentServices = userDepartmentServices;
     _userServices           = userServices;
 }
Exemplo n.º 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;
        }
 public ApiCoreController(ILoggerServices loggerServices, IUserServices userService,
                          IUserDepartmentServices userDepartmentServices)
 {
     _loggerServices         = loggerServices;
     _userService            = userService;
     _userDepartmentServices = userDepartmentServices;
 }
 public MobileOrgController(ILoggerServices loggerServices,
                            IUserServices userService,
                            IUserDepartmentServices userDepartmentServices,
                            IOrgService orgService) :
     base(loggerServices, userService, userDepartmentServices)
 {
     _orgService = orgService;
 }
 public NotificationController(ILoggerServices loggerServices,
                               IUserServices userService,
                               IUserDepartmentServices userDepartmentServices,
                               INotificationServices notificationServices) :
     base(loggerServices, userService, userDepartmentServices)
 {
     _notificationServices = notificationServices;
 }
Exemplo n.º 6
0
 public SsoController(ILoggerServices loggerServices, IUserServices userService,
                      IUserDepartmentServices userDepartmentServices,
                      IUserDeviceServices userDeviceServices, IOrgService orgService)
     : base(loggerServices, userService, userDepartmentServices)
 {
     _orgSevice          = orgService;
     _userDeviceServices = userDeviceServices;
 }
 public NotificationTypeController(
     ILoggerServices loggerServices,
     IUserServices userService,
     IUserDepartmentServices userDepartmentServices,
     INotificationTypeService notificationTypeService
     ) : base(loggerServices, userService, userDepartmentServices)
 {
     _notificationTypeService = notificationTypeService;
 }
Exemplo n.º 8
0
 public SystemConfigController(
     ILoggerServices loggerServices,
     IUserServices userService,
     IUserDepartmentServices userDepartmentServices,
     ISystemConfigServices systemConfigService
     ) : base(loggerServices, userService, userDepartmentServices)
 {
     _systemConfigService = systemConfigService;
 }
Exemplo n.º 9
0
 public OrgController(ILoggerServices loggerServices,
                      IUserServices userService,
                      IUserDepartmentServices userDepartmentServices,
                      IDepartmentServices departmentServices,
                      IOrgService orgService) :
     base(loggerServices, userService, userDepartmentServices)
 {
     _orgService         = orgService;
     _departmentServices = departmentServices;
 }
Exemplo n.º 10
0
 public ApisController(ILoggerServices loggerServices
                       , IUserServices userService
                       , IUserDepartmentServices userDepartmentServices
                       , IProjectService projectService
                       , IMapper mapper
                       ) : base(loggerServices, userService, userDepartmentServices)
 {
     _projectService         = projectService;
     _mapper                 = mapper;
     _userdepartmentServices = userDepartmentServices;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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();
        }
 public ProjectFilterParamController(ILoggerServices loggerServices, IUserServices userService, IUserDepartmentServices userDepartmentServices, IProjectFilterParamService projectFilterParamService, IMapper mapper, ICategoryService categoryService) : base(loggerServices, userService, userDepartmentServices)
 {
     _projectFilterParamService = projectFilterParamService;
     _categoryService           = categoryService;
     _mapper = mapper;
 }
 public BaseTaskController(ILoggerServices loggerServices,
                           IUserServices userService,
                           IUserDepartmentServices userDepartmentServices) : base(loggerServices, userService, userDepartmentServices)
 {
 }
 public TaskItemAssignController(ILoggerServices loggerServices, IUserServices userService, IUserDepartmentServices userDepartmentServices, ITaskItemAssignService taskItemAssignService, IMapper mapper, ISettingsService settingsService) : base(loggerServices, userService, userDepartmentServices)
 {
     _taskItemAssignService = taskItemAssignService;
     _mapper          = mapper;
     _settingsService = settingsService;
 }
 public SystemManagementController(ILoggerServices loggerServices, IUserServices userService, IUserDepartmentServices userDepartmentServices, IProjectFilterParamService projectFilterParamService, IMapper mapper, ISettingsService settingsService) : base(loggerServices, userService, userDepartmentServices)
 {
     _projectFilterParamService = projectFilterParamService;
     _settingsService           = settingsService;
     _mapper = mapper;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }