private void SetCallContextFromMessage(BaseMessage message) { var context = MessagingContext.Create(message); _loggerContext = _logger.BeginScope("RequestID: {requestId}, UserID: {userId}", context.RequestId, context.UserId); _messagingCallContextAccessor.SetContext(context); }
private MessagingContext SetCallContextFromMessage(BaseMessage message) { var context = MessagingContext.Create(message); _messagingCallContextAccessor.SetContext(context); return(context); }
private void SetCallContextFromMessage(BaseMessage message) { var context = MessagingContext.Create(message); Logger.RequestId = context.RequestId; Logger.User = context.UserId; _messagingCallContextAccessor.SetContext(context); }