Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/illinker-test-assets.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'wasm/BlazingPizza.Client/Startup.cs')
-rw-r--r--wasm/BlazingPizza.Client/Startup.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/wasm/BlazingPizza.Client/Startup.cs b/wasm/BlazingPizza.Client/Startup.cs
new file mode 100644
index 0000000..e4aff88
--- /dev/null
+++ b/wasm/BlazingPizza.Client/Startup.cs
@@ -0,0 +1,23 @@
+using Microsoft.AspNetCore.Components;
+using Microsoft.AspNetCore.Components.Builder;
+using Microsoft.Extensions.DependencyInjection;
+
+namespace BlazingPizza.Client
+{
+ public class Startup
+ {
+ public void ConfigureServices(IServiceCollection services)
+ {
+ services.AddScoped<OrderState>();
+
+ // Add auth services
+ services.AddAuthorizationCore();
+ services.AddScoped<AuthenticationStateProvider, ServerAuthenticationStateProvider>();
+ }
+
+ public void Configure(IComponentsApplicationBuilder app)
+ {
+ app.AddComponent<App>("app");
+ }
+ }
+}