Exemplo n.º 1
0
 public static string InstanceName(this HostContext context)
 {
     return(context.GetValue <string>(HostConstants.InstanceName));
 }
Exemplo n.º 2
0
 public static CancellationToken HostShutdownToken(this HostContext context)
 {
     return(context.GetValue <CancellationToken>(HostConstants.ShutdownToken));
 }
Exemplo n.º 3
0
 public static bool SupportsWebSockets(this HostContext context)
 {
     return(context.GetValue <bool>(HostConstants.SupportsWebSockets));
 }
Exemplo n.º 4
0
 public static string WebSocketServerUrl(this HostContext context)
 {
     return(context.GetValue <string>(HostConstants.WebSocketServerUrl));
 }
Exemplo n.º 5
0
 public static bool IsDebuggingEnabled(this HostContext context)
 {
     return(context.GetValue <bool>(HostConstants.DebugMode));
 }