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