public DefaultMessageChannelResolver(IApplicationContext context, IHeaderChannelRegistry registry = null)
 {
     _context  = context ?? throw new ArgumentNullException(nameof(context));
     _registry = registry;
 }
 public DefaultMessageChannelResolver(IDestinationRegistry destinationRegistry, IHeaderChannelRegistry registry = null)
 {
     _destinationRegistry = destinationRegistry ?? throw new ArgumentNullException(nameof(destinationRegistry));
     _registry            = registry;
 }