Exemplo n.º 1
0
        public TextFilePlugin(IConfigManager configManager)
        {
            ParameterValidator.ThowExceptionWhenIsNull(configManager, "configManager", "TextFilePlugin");

            this.configManager = configManager;

            fsParams = LoadFsParamsFromConfig();
        }
Exemplo n.º 2
0
        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;
        }