public void SetContext(MessageProcessorContext context) { if (context is null) { throw new ArgumentNullException(nameof(context)); } _context = context; }
public MessageProcessorFactory(MessageProcessorContext context) { _context = context ?? throw new ArgumentNullException(nameof(context)); _messageProcessors = new Dictionary <Type, Type>(); }