public RespondConfigurationMiddleware(IRespondConfigurationFactory factory, RespondConfigurationOptions options = null)
 {
     _factory          = factory;
     _requestTypeFunc  = options?.RequestTypeFunc ?? (context => context.GetRequestMessageType());
     _responseTypeFunc = options?.RequestTypeFunc ?? (context => context.GetResponseMessageType());
 }
 public RespondConfigurationMiddleware(IConsumerConfigurationFactory consumerFactory, RespondConfigurationOptions options = null)
     : this(new RespondConfigurationFactory(consumerFactory), options)
 {
 }