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