Пример #1
0
        private void LoadSettings()
        {
            AssertFilePathIsValid();
            //AssertFileExists();
            var content = embeddedResourceService.ReadResourceContent(_settingsFilePath);

            Settings = JsonConvert.DeserializeObject <TConfiguration>(content);
        }
 public string ReadSettings(ActivityEventNotifierIdentity notificationType)
 {
     (string resourceName, Assembly assembly) = GetEmbeddedResource(notificationType);
     try
     {
         return(_embeddedResourceService.ReadResourceContent(resourceName, assembly));
     }
     catch (FileNotFoundException)
     {
         return(null);
     }
 }