-
-
Notifications
You must be signed in to change notification settings - Fork 408
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Explore possible perf issues with static property loading (#4234)
* If !SyncContextWithServer properly load empty session * #2551 Updating ProjectTracker code * #4182 Fix Blazor context manager issue * Optimize code * Fix issue where "non-mobile" objects don't serialize Non-mobile objects now need to have an opportunity to be serialized by a custom formatter for that type, so all types should _try_ to serialize. * Clarify test names * #4182 Fix context manager accessor * Update to latest CSLA * #4182 Fix issue with IContextManager selection * Provide better exception information
- Loading branch information
1 parent
56c55fc
commit e035ad7
Showing
19 changed files
with
128 additions
and
115 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
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
Oops, something went wrong.