Add connected startup support
This commit is contained in:
parent
853e0c5988
commit
ccbff06090
25
src/Connected.Components.Showcase/ClientStartup.cs
Normal file
25
src/Connected.Components.Showcase/ClientStartup.cs
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
using Connected.Startup;
|
||||||
|
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
|
||||||
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
|
using Connected.Services;
|
||||||
|
|
||||||
|
namespace Connected.Components.Showcase;
|
||||||
|
|
||||||
|
public class ClientStartup : IStartup
|
||||||
|
{
|
||||||
|
public static IServiceProvider Services { get; private set; } = default!;
|
||||||
|
|
||||||
|
public async Task Configure(WebAssemblyHost host)
|
||||||
|
{
|
||||||
|
Services = host.Services;
|
||||||
|
|
||||||
|
await Task.CompletedTask;
|
||||||
|
}
|
||||||
|
|
||||||
|
public async Task ConfigureServices(IServiceCollection services)
|
||||||
|
{
|
||||||
|
services.AddUIComponentServices();
|
||||||
|
|
||||||
|
await Task.CompletedTask;
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user