public async Task <IActionResult> GetAllDevices() { try { var devices = await m_devicesInfoService.GetAllSync(); var connectionInfo = m_actionContextAccessor.ActionContext.HttpContext.Connection; var host = connectionInfo.RemoteIpAddress.ToString(); logToConsole .Stamp().Action().WriteLine() .RemoteInfo(connectionInfo).HostInfo(connectionInfo).WriteLine(); return(new ObjectResult(devices)); } catch (Exception ex) { return(BadRequest(ex)); } }
public ParticipantAppRestJSONController(IParticipantService participantService) { m_participantService = participantService; logToConsole.Stamp().Action(MemberName: "Rest Controller JSON"); }