public static void SetServiceProvider(IServiceProvider serviceProvider, IConfigurationRoot configurationRoot) { Ensure.NotNull(serviceProvider, "ServiceProvider"); _ServiceProvider = serviceProvider; Ensure.NotNull(configurationRoot, "ConfigurationRoot"); ConfigurationManage.SetConfiguration(configurationRoot); }
/// <summary> /// .ctor /// </summary> static ConfigurationManage() { Instance = new ConfigurationManage(); }