diff options
author | Larry Ewing <lewing@xamarin.com> | 2019-07-04 20:49:23 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-04 20:49:23 +0300 |
commit | ec9eb51af2eb07dbe50a2724db826bf3bfb930a6 (patch) | |
tree | 9e021417166c9f11284941ea6fdb4a47045ffd98 /wasm/BlazingPizza.Client/Startup.cs | |
parent | 59624b5f60e663deb37074f5dce50e10b3eb0ce7 (diff) | |
parent | 337d04b15a802a6a761664f6d5c1ed84c2566cf4 (diff) |
Merge pull request #3 from lewing/wasm-pizza
Add BlazingPizza.Client sample
Diffstat (limited to 'wasm/BlazingPizza.Client/Startup.cs')
-rw-r--r-- | wasm/BlazingPizza.Client/Startup.cs | 23 |
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"); + } + } +} |