initial changes to migrate to new Blazor approach in .NET 8

This commit is contained in:
sbwalker
2024-01-30 16:03:50 -05:00
parent 7fcfffba6f
commit 82d7b9cf05
8 changed files with 479 additions and 605 deletions

View File

@ -0,0 +1,22 @@
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components;
namespace Oqtane.Client.Utilities
{
public static class RenderModes
{
public static IComponentRenderMode GetRenderMode(string renderMode)
{
switch (renderMode)
{
case "InteractiveServer":
return RenderMode.InteractiveServer;
case "InteractiveWebAssembly":
return RenderMode.InteractiveWebAssembly;
case "InteractiveAuto":
return RenderMode.InteractiveAuto;
}
return null;
}
}
}