示例#1
0
 public ProfileService(
     IUnitOfWorkFactory unitOfWorkFactory,
     IFileStorage fileStorage,
     ISessionManager sessionManager,
     ProfileChangesNotificator profileChangesNotificator,
     ITransactionFactory transactionFactory) 
     : base(unitOfWorkFactory, transactionFactory)
 {
     _fileStorage = fileStorage;
     _sessionManager = sessionManager;
     _profileChangesNotificator = profileChangesNotificator;
 }
示例#2
0
 public ChatService(
     ISessionManager sessionManager,
     ISettings settings,
     ProfileChangesNotificator profileChangesNotificator,
     ITransactionFactory transactionFactory,
     IUnitOfWorkFactory unitOfWorkFactory,
     IPushNotificator pushNotificator)
     : base(unitOfWorkFactory, transactionFactory)
 {
     _sessionManager = sessionManager;
     _settings = settings;
     _profileChangesNotificator = profileChangesNotificator;
     _pushNotificator = pushNotificator;
     _sessionManager.AuthenticatedUserConnected += SessionManagerOnAuthenticatedUserConnected;
     _sessionManager.AuthenticatedUserDisconnected += SessionManagerOnAuthenticatedUserDisconnected;
 }