コード例 #1
0
 public LogEventModel(ILogEventModel source)
 {
     EventKey     = source.EventKey;
     RequestKey   = source.RequestKey;
     Severity     = source.Severity;
     TimeOccurred = source.TimeOccurred;
     Caption      = source.Caption;
     Message      = source.Message;
     Detail       = source.Detail;
 }
コード例 #2
0
 public async Task LogEvent(ILogEventModel model)
 {
     try
     {
         await logEvent(model);
     }
     catch (Exception ex)
     {
         await handleError(ex);
     }
 }
コード例 #3
0
        private async Task logEvent(ILogEventModel model)
        {
            var request = await appFactory.Requests().Request(model.RequestKey);

            if (request.ID.IsNotValid())
            {
                request = await startPlaceholderRequest(model.RequestKey);
            }
            var severity = AppEventSeverity.Values.Value(model.Severity);
            await request.LogEvent
            (
                model.EventKey,
                severity,
                model.TimeOccurred,
                model.Caption,
                model.Message,
                model.Detail
            );
        }
コード例 #4
0
 public Task LogEvent(ILogEventModel model)
 => client.PermanentLog.LogEvent(new LogEventModel(model));