示例#1
0
 public TaskController(ISessionScopeFactory sessionScopeFactory, ITaskManager taskManager
     , IPartakerManager partakerManager, IAccountManager accountManager,
      IStaffManager staffManager)
 {
     if (sessionScopeFactory == null) throw new ArgumentException("sessionScopeFactory");
     if (taskManager == null) throw new ArgumentException("TaskManager");
     m_SessionScopeFactory = sessionScopeFactory;
     m_TaskManager = taskManager;
     m_PartakerManager = partakerManager;
     m_AccountManager = accountManager;
     m_StaffManager = staffManager;
 }
示例#2
0
        public StaffController(ISessionScopeFactory sessionScopeFactory, IStaffManager staffManager,
            IPartakerManager partakerManager)
            : base(sessionScopeFactory)
        {
            Args.NotNull(sessionScopeFactory, nameof(sessionScopeFactory));
            Args.NotNull(staffManager, nameof(staffManager));
            Args.NotNull(partakerManager, nameof(partakerManager));

            this.m_SessionScopeFactory = sessionScopeFactory;
            this.StaffManager = staffManager;

        }