Add connected startup support

features/nuget_autobuild
Matija Koželj 2 years ago
parent 853e0c5988
commit ccbff06090

@ -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…
Cancel
Save