public Task PurgeAndRecordLogEvent([FromBody] LogEventsModel logEvents) { var command = LogEventReceived.Purge(_context.DeviceId); if (logEvents != null) { command = LogEventReceived.HavingDetails( _context.DeviceId, logEvents, purgeExisting: true); } return(_messagingSrv.SendAsync(command)); }
public Task RecordLogEvent([FromBody] LogEventsModel logEvents) { var command = LogEventReceived.HavingDetails(_context.DeviceId, logEvents); return(_messagingSrv.SendAsync(command)); }