Example #1
0
        private void SetCallContextFromMessage(BaseMessage message)
        {
            var context = MessagingContext.Create(message);

            _loggerContext = _logger.BeginScope("RequestID: {requestId}, UserID: {userId}", context.RequestId, context.UserId);

            _messagingCallContextAccessor.SetContext(context);
        }
Example #2
0
        private MessagingContext SetCallContextFromMessage(BaseMessage message)
        {
            var context = MessagingContext.Create(message);

            _messagingCallContextAccessor.SetContext(context);

            return(context);
        }
Example #3
0
        private void SetCallContextFromMessage(BaseMessage message)
        {
            var context = MessagingContext.Create(message);

            Logger.RequestId = context.RequestId;
            Logger.User      = context.UserId;

            _messagingCallContextAccessor.SetContext(context);
        }