public LogHistory( IWurmLogsHistory wurmLogsHistory, IWurmCharacterDirectories wurmCharacterDirectories, IWurmServerHistory wurmServerHistory, LogHistorySaved logHistorySaved, LogEntriesParser parser) { if (wurmLogsHistory == null) throw new ArgumentNullException("wurmLogsHistory"); if (wurmCharacterDirectories == null) throw new ArgumentNullException("wurmCharacterDirectories"); if (wurmServerHistory == null) throw new ArgumentNullException("wurmServerHistory"); if (logHistorySaved == null) throw new ArgumentNullException("logHistorySaved"); if (parser == null) throw new ArgumentNullException("parser"); this.wurmLogsHistory = wurmLogsHistory; this.wurmCharacterDirectories = wurmCharacterDirectories; this.wurmServerHistory = wurmServerHistory; this.logHistorySaved = logHistorySaved; this.parser = parser; }
public LogHistory( IWurmLogsHistory wurmLogsHistory, IWurmCharacterDirectories wurmCharacterDirectories, IWurmServerHistory wurmServerHistory, LogHistorySaved logHistorySaved, LogEntriesParser parser, [NotNull] IWurmApiLogger wurmApiLogger) { if (wurmLogsHistory == null) { throw new ArgumentNullException(nameof(wurmLogsHistory)); } if (wurmCharacterDirectories == null) { throw new ArgumentNullException(nameof(wurmCharacterDirectories)); } if (wurmServerHistory == null) { throw new ArgumentNullException(nameof(wurmServerHistory)); } if (logHistorySaved == null) { throw new ArgumentNullException(nameof(logHistorySaved)); } if (parser == null) { throw new ArgumentNullException(nameof(parser)); } if (wurmApiLogger == null) { throw new ArgumentNullException(nameof(wurmApiLogger)); } this.wurmLogsHistory = wurmLogsHistory; this.wurmCharacterDirectories = wurmCharacterDirectories; this.wurmServerHistory = wurmServerHistory; this.logHistorySaved = logHistorySaved; this.parser = parser; this.wurmApiLogger = wurmApiLogger; }