internal static IAuthoritionComponent UseOIDCAuthServer(XmlNode section) { var Component = new OIDCAuthComponent(); FastDFSConfigurationSection.FormatFromConfig(Component, section); return(Component); }
internal static IAuthoritionComponent UseGoogleAuthServer(IConfigurationSection section) { var Component = new GoogleAuthComponent(); FastDFSConfigurationSection.FormatFromConfig(Component, section); return(Component); }
/// <summary> /// Read the default configuration from the project configuration file /// </summary> /// <param name="services"></param> /// <param name="configuration"></param> public static IServiceCollection AddFastDFSClientDefaultOption(this IServiceCollection services, IConfiguration configuration) { return(AddFastDFSClientDefaultOption(services, FastDFSConfigurationSection.Create(configuration.GetSection(DefaultFastDFSConfigurationName)))); }