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(); }
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(); }
public static void ReadAllConfig(this ExceptionlessConfiguration config, params Assembly[] configAttributesAssemblies) { if (configAttributesAssemblies == null || configAttributesAssemblies.Length == 0) { #if NETSTANDARD1_5 config.ReadFromAttributes(Assembly.GetEntryAssembly()); #elif NET45 config.ReadFromAttributes(Assembly.GetEntryAssembly(), Assembly.GetCallingAssembly()); #endif } else { config.ReadFromAttributes(configAttributesAssemblies); } #if !PORTABLE && !NETSTANDARD config.ReadFromConfigSection(); config.ReadFromAppSettings(); #endif #if !PORTABLE && !NETSTANDARD1_2 config.ReadFromEnvironmentalVariables(); #endif config.ApplySavedServerSettings(); }