コード例 #1
0
 public DataQueryService(IDeansOfficeQuery deansOfficeQuery, ILoginQueryDao loginQuery, ISessionGenerator sessionGenerator, IEventsQuery eventsQuery, IMessageQuery messageQuery, ILibraryQuery libraryQuery, IUnitQuery unitQuery, IUserQuery userQuery, IDepartmentQuery departmentQuery)
 {
     _deansOfficeQuery = deansOfficeQuery ?? new DeansOfficeQuery();
     _loginQuery       = loginQuery ?? new LoginQueryDao();
     _sessionGenerator = sessionGenerator ?? new SessionGenerator();
     _eventsQuery      = eventsQuery ?? new EventsQueryDao();
     _messageQuery     = messageQuery ?? new MessageQueryDao();
     _libraryQuery     = libraryQuery ?? new LibraryQueryDao();
     _unitQuery        = unitQuery ?? new UnitQueryDao();
     _userQuery        = userQuery ?? new UserQueryDao();
     _departmentQuery  = departmentQuery ?? new DepartmentQueryDao();
 }
コード例 #2
0
 public LoginHandler(ILoginQueryDao loginQueryDao, ISessionGenerator sessionGenerator)
 {
     _loginQueryDao    = loginQueryDao;
     _sessionGenerator = sessionGenerator;
 }
コード例 #3
0
 public LoginQueryDao(ISessionGenerator sessionGenerator = null)
 {
     _sessionGenerator = sessionGenerator ?? new SessionGenerator();
 }
コード例 #4
0
 public LoginHandler()
 {
     _loginQueryDao    = new LoginQueryDao();
     _sessionGenerator = new SessionGenerator();
 }
コード例 #5
0
 public DataCommandService(ICommands commands, ILoginQueryDao loginQuery, ISessionGenerator sessionGenerator)
 {
     _commands         = commands ?? new Commands.Commands();
     _loginQuery       = loginQuery ?? new LoginQueryDao();
     _sessionGenerator = sessionGenerator ?? new SessionGenerator();
 }