Esempio n. 1
0
        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));
        }
Esempio n. 2
0
        public Task RecordLogEvent([FromBody] LogEventsModel logEvents)
        {
            var command = LogEventReceived.HavingDetails(_context.DeviceId, logEvents);

            return(_messagingSrv.SendAsync(command));
        }