-
-
Notifications
You must be signed in to change notification settings - Fork 403
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b7892a
commit 5748baf
Showing
12 changed files
with
46 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
...s/ProjectTracker/ProjectTracker.Blazor/ProjectTracker.Blazor.Client/ActiveCircuitState.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 6 additions & 7 deletions
13
Samples/ProjectTracker/ProjectTracker.Blazor/ProjectTracker.Blazor.Client/Program.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,22 @@ | ||
using Csla.Configuration; | ||
using Marimer.Blazor.RenderMode.WebAssembly; | ||
using Microsoft.AspNetCore.Components.WebAssembly.Hosting; | ||
using ProjectTracker.Blazor; | ||
|
||
var builder = WebAssemblyHostBuilder.CreateDefault(args); | ||
|
||
builder.Services.AddAuthorizationCore(); | ||
builder.Services.AddCascadingAuthenticationState(); | ||
|
||
// Add render mode detection services | ||
builder.Services.AddTransient<RenderModeProvider>(); | ||
builder.Services.AddScoped<ActiveCircuitState>(); | ||
builder.Services.AddRenderModeDetection(); | ||
|
||
builder.Services.AddMemoryCache(); | ||
|
||
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) }); | ||
|
||
builder.Services.AddCsla(o => o | ||
.AddBlazorWebAssembly(o => o.SyncContextWithServer = true) | ||
.DataPortal(o => o.AddClientSideDataPortal(o => o | ||
.UseHttpProxy(o => o.DataPortalUrl = "/api/dataportal")))); | ||
builder.Services.AddCsla(_ => _ | ||
.AddBlazorWebAssembly(_ => _.SyncContextWithServer = true) | ||
.DataPortal(_ => _.AddClientSideDataPortal(_ => _ | ||
.UseHttpProxy(_ => _.DataPortalUrl = "/api/dataportal")))); | ||
|
||
await builder.Build().RunAsync(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 0 additions & 22 deletions
22
...s/ProjectTracker/ProjectTracker.Blazor/ProjectTracker.Blazor.Client/RenderModeProvider.cs
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
Samples/ProjectTracker/ProjectTracker.Blazor/ProjectTracker.Blazor.Client/RenderModes.cs
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
Samples/ProjectTracker/ProjectTracker.Blazor/ProjectTracker.Blazor/ActiveCircuitHandler.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters