This repository has been archived on 2025-05-14. You can view files and clone it, but cannot push or open issues or pull requests.

23 lines
653 B
C#

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;
}
}
}