initial changes to migrate to new Blazor approach in .NET 8
This commit is contained in:
22
Oqtane.Client/Utilities/RenderModes.cs
Normal file
22
Oqtane.Client/Utilities/RenderModes.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user