Beispiel #1
0
 private void InitializeDefinitions(string jsonUri)
 {
     if (!FilesystemIoHelper.FileExists(jsonUri))
     {
         throw new FileNotFoundException("can't access definition file: " + jsonUri, jsonUri);
     }
     this.ReadJsonDefinitions(FilesystemIoHelper.GetStreamReader(jsonUri));
 }
Beispiel #2
0
        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);
        }