Ejemplo n.º 1
0
 public static void ReadAllConfig(this ExceptionlessConfiguration config, params Assembly[] configAttributesAssemblies)
 {
     config.UseIsolatedStorage();
     if (configAttributesAssemblies == null || configAttributesAssemblies.Length == 0)
     {
         config.ReadFromAttributes(Assembly.GetEntryAssembly(), Assembly.GetCallingAssembly());
     }
     else
     {
         config.ReadFromAttributes(configAttributesAssemblies);
     }
     config.ReadFromConfigSection();
     config.ApplySavedServerSettings();
 }
Ejemplo n.º 2
0
        public static void ReadAllConfig(this ExceptionlessConfiguration config, params Assembly[] configAttributesAssemblies)
        {
            if (!config.Resolver.HasRegistration <IObjectStorage>())
            {
                config.UseIsolatedStorage();
            }

            if (configAttributesAssemblies == null || configAttributesAssemblies.Length == 0)
            {
                config.ReadFromAttributes(Assembly.GetEntryAssembly(), Assembly.GetCallingAssembly());
            }
            else
            {
                config.ReadFromAttributes(configAttributesAssemblies);
            }

            config.ReadFromConfigSection();
            config.ReadFromAppSettings();
            config.ReadFromEnvironmentalVariables();
            config.ApplySavedServerSettings();
        }