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