fix .NET MAUI integration

This commit is contained in:
sbwalker
2024-01-31 15:43:17 -05:00
parent c5de56790a
commit c66982c9bc
4 changed files with 8 additions and 5 deletions

View File

@ -16,7 +16,7 @@
<div style="@_display">
<CascadingAuthenticationState>
<CascadingValue Value="@PageState">
<SiteRouter Runtime="Web" RenderMode="@RenderMode" VisitorId="@VisitorId" OnStateChange="@ChangeState" />
<SiteRouter Runtime="@Runtime" RenderMode="@RenderMode" VisitorId="@VisitorId" OnStateChange="@ChangeState" />
</CascadingValue>
</CascadingAuthenticationState>
</div>
@ -34,6 +34,9 @@
[Parameter]
public string AntiForgeryToken { get; set; }
[Parameter]
public string Runtime { get; set; }
[Parameter]
public string RenderMode { get; set; }

View File

@ -285,7 +285,7 @@
Action = action,
EditMode = editmode,
LastSyncDate = lastsyncdate,
Runtime = Shared.Runtime.Hybrid,
Runtime = (Shared.Runtime)Enum.Parse(typeof(Shared.Runtime), Runtime),
RenderMode = RenderMode,
VisitorId = VisitorId,
RemoteIPAddress = SiteState.RemoteIPAddress,