/// <summary>
 /// Add <see cref=" MaterialDesignIconModule"/>.
 /// </summary>
 /// <param name="modules"></param>
 /// <param name="configureOptions"></param>
 /// <returns></returns>
 public static IModuleHostBuilder AddMaterialDesignIconModule(this IModuleHostBuilder modules, Action <MaterialDesignIconModuleOption>?configureOptions = null)
 {
     if (configureOptions is not null)
     {
         modules.ConfigureBuilderOptions <MaterialDesignIconModuleOption>((o, sp) => configureOptions(o));
         modules.ConfigureOptions <MaterialDesignIconModuleOption>((o, sp) => configureOptions(o));
     }
     return(modules.AddModule <MaterialDesignIconModule>());
 }
Ejemplo n.º 2
0
 public static IModuleHostBuilder AddPersonsServerModule(this IModuleHostBuilder builder, Action <PersonsServerModuleStartupOption, IServiceProvider>?configureStartupOptions = null)
 {
     builder.AddModule <PersonsServerModule>();
     if (configureStartupOptions is not null)
     {
         builder.ConfigureBuilderOptions(configureStartupOptions);
     }
     return(builder);
 }
 /// <summary>
 /// Add Blazor UI Hosting Module.
 /// </summary>
 /// <param name="builder"></param>
 /// <param name="configureOptions"></param>
 /// <returns></returns>
 public static IModuleHostBuilder AddBlazorUIHosting(this IModuleHostBuilder builder, Action <BlazorUiHostingModuleOption, IServiceProvider>?configureOptions = null)
 {
     builder.AddModule <BlazorUiHostingModule>();
     if (configureOptions is not null)
     {
         builder.ConfigureOptions(configureOptions);
     }
     return(builder);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Add <see cref="ObjectStorageApiModule"/>.
 /// </summary>
 /// <param name="builder"></param>
 /// <param name="configureOptions"></param>
 /// <returns></returns>
 public static IModuleHostBuilder AddObjectStorageApiModule(this IModuleHostBuilder builder, Action <ObjectStorageApiModuleOption, IServiceProvider>?configureOptions = null)
 {
     builder.AddModule <ObjectStorageApiModule>();
     if (configureOptions is not null)
     {
         builder.ConfigureOptions(configureOptions);
     }
     return(builder);
 }
Ejemplo n.º 5
0
 public static IModuleHostBuilder AddModuleManagerModule(this IModuleHostBuilder modules, Action <ModuleOption, IServiceProvider>?configureOptions = null)
 {
     modules.AddModule <ModuleManagerModule>();
     if (configureOptions is not null)
     {
         modules.ConfigureServices(services =>
         {
             services.AddOptions <ModuleOption>().Configure(configureOptions);
         });
     }
     return(modules);
 }
Ejemplo n.º 6
0
        public static IModuleHostBuilder AddIdentityServerModule(this IModuleHostBuilder builder, Action <IdentityServerModuleStartupOption, IServiceProvider>?configureStartupOptions = null, Action <IdentityServerModuleOption, IServiceProvider>?configureOptions = null)
        {
            builder.AddModule <IdentityServerModule>();
            if (configureStartupOptions is not null)
            {
                builder.ConfigureBuilderServices(services =>
                {
                    services.AddOptions <IdentityServerModuleStartupOption>().Configure(configureStartupOptions);
                });
            }
            if (configureOptions is not null)
            {
                builder.ConfigureServices(services =>
                {
                    services.AddOptions <IdentityServerModuleOption>().Configure(configureOptions);
                });
            }

            return(builder);
        }
 /// <summary>
 /// Use aspnet modules.
 /// </summary>
 /// <param name="modules"></param>
 /// <returns></returns>
 public static IModuleHostBuilder UseAspNetServerModules(this IModuleHostBuilder modules) => modules.AddModule <AspnetServerCoreModule>();
Ejemplo n.º 8
0
 /// <summary>
 /// Add <see cref="BootstrapModule"/>.
 /// </summary>
 /// <param name="modules"></param>
 /// <returns></returns>
 public static IModuleHostBuilder AddBootstrapModule(this IModuleHostBuilder modules) => modules.AddModule <BootstrapModule>();
Ejemplo n.º 9
0
 /// <summary>
 /// Add <see cref="AntDesignModule"/>.
 /// </summary>
 /// <param name="modules"></param>
 /// <returns></returns>
 public static IModuleHostBuilder AddAntDesignModule(this IModuleHostBuilder modules) => modules.AddModule <AntDesignModule>();
Ejemplo n.º 10
0
 public static IModuleHostBuilder AddHelloServerModule(this IModuleHostBuilder builder)
 {
     builder.AddModule <HelloServerModule>();
     return(builder);
 }
Ejemplo n.º 11
0
 public static IModuleHostBuilder AddModuleManagerServerModule(this IModuleHostBuilder modules)
 {
     modules.AddModule <ModuleManagerServerModule>();
     return(modules);
 }
Ejemplo n.º 12
0
 public static IModuleHostBuilder AddItemMetadataServerGraphqlModule(this IModuleHostBuilder builder) => builder.AddModule <GraphQL.ItemMetadataServerGraphqlModule>();
Ejemplo n.º 13
0
 public static IModuleHostBuilder AddIdentityServerGraphqlModule(this IModuleHostBuilder builder)
 {
     builder.AddModule <IdentityServerGraphqlModule>();
     return(builder);
 }
 /// <summary>
 /// Add <see cref="AntDesignModule"/>.
 /// </summary>
 /// <param name="modules"></param>
 /// <returns></returns>
 public static IModuleHostBuilder AddMarkdownModule(this IModuleHostBuilder modules) => modules.AddModule <MarkdownModule>();
Ejemplo n.º 15
0
 /// <summary>
 /// Add <see cref="JQueryModule"/>.
 /// </summary>
 /// <param name="modules"></param>
 /// <returns></returns>
 public static IModuleHostBuilder AddJQueryModule(this IModuleHostBuilder modules) => modules.AddModule <JQueryModule>();
Ejemplo n.º 16
0
 /// <summary>
 /// Add <see cref="VditorModule"/>.
 /// </summary>
 /// <param name="modules"></param>
 /// <returns></returns>
 public static IModuleHostBuilder AddVditorModule(this IModuleHostBuilder modules) => modules.AddModule <VditorModule>();
Ejemplo n.º 17
0
 public static IModuleHostBuilder AddClientModule(this IModuleHostBuilder modules)
 {
     modules.AddModule <ClientModule>();
     return(modules);
 }
Ejemplo n.º 18
0
 /// <summary>
 /// Add a typed module.
 /// </summary>
 /// <typeparam name="T">Module type.</typeparam>
 /// <param name="builder">Module host builder.</param>
 /// <returns></returns>
 public static IModuleHostBuilder AddModule <T>(this IModuleHostBuilder builder) where T : IModule => builder.AddModule(typeof(T));