Modulight.UI.Blazor.Hosting 0.0.7.1

Support ASP.NET hosting for Modulight.UI.Blazor.

Install-Package Modulight.UI.Blazor.Hosting -Version 0.0.7.1
dotnet add package Modulight.UI.Blazor.Hosting --version 0.0.7.1
<PackageReference Include="Modulight.UI.Blazor.Hosting" Version="0.0.7.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Modulight.UI.Blazor.Hosting --version 0.0.7.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Modulight.UI.Blazor.Hosting, 0.0.7.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Modulight.UI.Blazor.Hosting as a Cake Addin
#addin nuget:?package=Modulight.UI.Blazor.Hosting&version=0.0.7.1

// Install Modulight.UI.Blazor.Hosting as a Cake Tool
#tool nuget:?package=Modulight.UI.Blazor.Hosting&version=0.0.7.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Modulight.UI.Blazor.Hosting

Modulight.UI.Blazor.Hosting

// void ConfigureServices(IServiceCollection services)

services.AddModules(builder =>
{
    builder.UseRazorComponentClientModules().AddServerSideBlazorUI<CustomBlazorUIProvider>();
    // builder.UseRazorComponentClientModules().AddClientSideBlazorUI<CustomBlazorUIProvider>();
});

// void Configure(IApplicationBuilder app, IWebHostEnvironment env)

app.UseAspNetServerModuleMiddlewares();
app.UseStaticFiles();
app.UseRouting();
app.UseEndpoints(endpoints =>
{
    endpoints.MapAspNetServerModuleEndpoints();
});

// in Program: Task Main(string[] args)
await CreateHostBuilder(args).Build().RunAsyncWithModules();

A Sample startup.

Modulight.UI.Blazor.Hosting

Modulight.UI.Blazor.Hosting

// void ConfigureServices(IServiceCollection services)

services.AddModules(builder =>
{
    builder.UseRazorComponentClientModules().AddServerSideBlazorUI<CustomBlazorUIProvider>();
    // builder.UseRazorComponentClientModules().AddClientSideBlazorUI<CustomBlazorUIProvider>();
});

// void Configure(IApplicationBuilder app, IWebHostEnvironment env)

app.UseAspNetServerModuleMiddlewares();
app.UseStaticFiles();
app.UseRouting();
app.UseEndpoints(endpoints =>
{
    endpoints.MapAspNetServerModuleEndpoints();
});

// in Program: Task Main(string[] args)
await CreateHostBuilder(args).Build().RunAsyncWithModules();

A Sample startup.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.0.7.1 88 5/31/2021
0.0.7 100 5/31/2021
0.0.6 87 5/30/2021
0.0.5 98 4/3/2021
0.0.5-preview.16 112 3/13/2021
0.0.5-preview.15 94 3/12/2021
0.0.5-preview.14 62 3/12/2021
0.0.5-preview.13 76 3/12/2021
0.0.5-preview.12 44 3/12/2021
0.0.5-preview.11 58 3/10/2021
0.0.5-preview.10 71 3/10/2021
0.0.5-preview.4 54 3/4/2021
0.0.5-preview.2 73 3/4/2021
0.0.4 80 3/4/2021
0.0.4-preview.40 45 2/22/2021
0.0.4-preview.30 108 2/21/2021