public ProfileService( IUnitOfWorkFactory unitOfWorkFactory, IFileStorage fileStorage, ISessionManager sessionManager, ProfileChangesNotificator profileChangesNotificator) : base(unitOfWorkFactory) { _fileStorage = fileStorage; _sessionManager = sessionManager; _profileChangesNotificator = profileChangesNotificator; }
public ChatService( ISessionManager sessionManager, ISettings settings, IFileStorage fileStorage, ProfileChangesNotificator profileChangesNotificator, IUnitOfWorkFactory unitOfWorkFactory) : base(unitOfWorkFactory) { _sessionManager = sessionManager; _settings = settings; _fileStorage = fileStorage; _profileChangesNotificator = profileChangesNotificator; _sessionManager.AuthenticatedUserConnected += SessionManagerOnAuthenticatedUserConnected; _sessionManager.AuthenticatedUserDisconnected += SessionManagerOnAuthenticatedUserDisconnected; }