/// <summary> /// Gets the specified request. /// </summary> /// <param name="request">The request.</param> /// <returns>System.Object.</returns> public object Get(GetSystemInfo request) { var result = _appHost.GetSystemInfo(); return(ToOptimizedResult(result)); }
/// <summary> /// Gets the specified request. /// </summary> /// <param name="request">The request.</param> /// <returns>System.Object.</returns> public async Task <object> Get(GetSystemInfo request) { var result = await _appHost.GetSystemInfo().ConfigureAwait(false); return(ToOptimizedResult(result)); }
public async Task <ActionResult <SystemInfo> > GetSystemInfo() { return(await _appHost.GetSystemInfo(CancellationToken.None).ConfigureAwait(false)); }
/// <summary> /// Gets the data to send. /// </summary> /// <param name="state">The state.</param> /// <returns>Task{SystemInfo}.</returns> protected override Task <SystemInfo> GetDataToSend(object state) { return(Task.FromResult(_appHost.GetSystemInfo())); }
/// <summary> /// Gets the data to send. /// </summary> /// <param name="state">The state.</param> /// <returns>Task{SystemInfo}.</returns> protected override Task <SystemInfo> GetDataToSend(WebSocketListenerState state) { return(_appHost.GetSystemInfo()); }
/// <summary> /// Handles the HasPendingRestartChanged event of the kernel control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param> void kernel_HasPendingRestartChanged(object sender, EventArgs e) { _serverManager.SendWebSocketMessage("RestartRequired", _appHost.GetSystemInfo()); }
public ActionResult<SystemInfo> GetSystemInfo() { return _appHost.GetSystemInfo(Request); }
public ActionResult <SystemInfo> GetSystemInfo() { return(_appHost.GetSystemInfo(Request.HttpContext.Connection.RemoteIpAddress ?? IPAddress.Loopback)); }
/// <summary> /// Gets the data to send. /// </summary> /// <param name="state">The state.</param> /// <returns>Task{SystemInfo}.</returns> protected override Task <SystemInfo> GetDataToSend(WebSocketListenerState state, CancellationToken cancellationToken) { return(_appHost.GetSystemInfo(cancellationToken)); }