RequestContext.Items in MQ


I am using GlobalMessageRequestFilters.Add to add entries to RequestContext.Items so I can user later on during execution of that mq process. Is this thread-safe to do if using multiple threads for the mq listeners?

 mqService.RegisterHandler<MyDto>(SecureHandler, noOfThreads: 15);

It uses .NET’s Remoting CallContext for Request Context storage so it should be localized to each logical thread but I’d recommend avoiding Request Context’s and use IRequest.Items for all data you want to share within the same Request.