public SessionService(IMessenger messenger, IResultConverter resultConverter, IResultSerializer resultSerializer, IResultMutator resultMutator, IApiClient apiClient) { _messenger = messenger; _resultConverter = resultConverter; _resultSerializer = resultSerializer; _resultMutator = resultMutator; _apiClient = apiClient; }
public FileSession(ISessionHandler resultHandler, IResultSerializer resultSerializer, FileSessionParameters parameters) { if (parameters == null) { throw new ArgumentNullException(nameof(parameters)); } if (string.IsNullOrWhiteSpace(parameters.FileName)) { throw new ArgumentException(@"FileName is required.", nameof(parameters)); } _watchFile = parameters.Watch; _syncContext = SynchronizationContext.Current; _resultSerializer = resultSerializer; _sessionHandler = resultHandler; Name = parameters.FileName; }