private void InitializeDefinitions(string jsonUri) { if (!FilesystemIoHelper.FileExists(jsonUri)) { throw new FileNotFoundException("can't access definition file: " + jsonUri, jsonUri); } this.ReadJsonDefinitions(FilesystemIoHelper.GetStreamReader(jsonUri)); }
private void InitializeFileSteam() { this.CheckConfigurationIsValid(); if (!FilesystemIoHelper.FileExists(this.Logfile)) { var message = "The specified logfile " + this.Logfile + " was not found"; throw new FileNotFoundException(message, this.Logfile); } this.streamreader = FilesystemIoHelper.GetStreamReader(this.Logfile); }