public TextFilePlugin(IConfigManager configManager) { ParameterValidator.ThowExceptionWhenIsNull(configManager, "configManager", "TextFilePlugin"); this.configManager = configManager; fsParams = LoadFsParamsFromConfig(); }
public TextFilePlugin(FsParams fsParams) { ParameterValidator.ThowExceptionWhenIsNull(fsParams, "fsParams", "TextFilePlugin"); ParameterValidator.ThowExceptionWhenIsNullOrEmpty(fsParams.LogPath, "fsParams.LogPath", "TextFilePlugin"); ParameterValidator.ThowExceptionWhenIsNullOrEmpty(fsParams.LogName, "fsParams.LogName", "TextFilePlugin"); ParameterValidator.ThowExceptionWhenIsNullOrEmpty(fsParams.LogExtension, "fsParams.LogExtension", "TextFilePlugin"); this.fsParams = fsParams; }