14 lines
379 B
C#
14 lines
379 B
C#
using System.Diagnostics.CodeAnalysis;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace Connected.Utilities
|
|
{
|
|
[ExcludeFromCodeCoverage]
|
|
public class RuntimeLocation
|
|
{
|
|
public static bool IsClientSide => RuntimeInformation.OSDescription == "Browser"; // WASM
|
|
public static bool IsServerSide => RuntimeInformation.OSDescription != "Browser";
|
|
}
|
|
|
|
}
|