public async Task LoadLogFile() { if (NetPatch.FileExists(Config.LogFilePath)) { await LogPool.LoadLogFile(Config.LogFilePath); } }
public bool LoadConfig(string configFilePath) { if (string.IsNullOrWhiteSpace(configFilePath)) { throw new ArgumentException($"{nameof(configFilePath)} cannot be null or whitespace", nameof(configFilePath)); } else if (false == NetPatch.FileExists(configFilePath)) { return(false); } Config = BigSqlRunnerConfig.FromFile(configFilePath); return(true); }
public static BigSqlRunner FromConfig(string configFilePath) { if (string.IsNullOrWhiteSpace(configFilePath)) { throw new ArgumentException($"{nameof(configFilePath)} cannot be null or whitespace", nameof(configFilePath)); } else if (false == NetPatch.FileExists(configFilePath)) { return(null); } var config = BigSqlRunnerConfig.FromFile(configFilePath); var bigSqlRunner = new BigSqlRunner(config); return(bigSqlRunner); }