public static string InstanceName(this HostContext context) { return(context.GetValue <string>(HostConstants.InstanceName)); }
public static CancellationToken HostShutdownToken(this HostContext context) { return(context.GetValue <CancellationToken>(HostConstants.ShutdownToken)); }
public static bool SupportsWebSockets(this HostContext context) { return(context.GetValue <bool>(HostConstants.SupportsWebSockets)); }
public static string WebSocketServerUrl(this HostContext context) { return(context.GetValue <string>(HostConstants.WebSocketServerUrl)); }
public static bool IsDebuggingEnabled(this HostContext context) { return(context.GetValue <bool>(HostConstants.DebugMode)); }