public static void UseMicroServiceConsumer(this IMicroServiceBuilder self, MicroServiceConsumerOptions options) { self.UseMiddleware<MicroServiceConsumerMiddleware>(options); }
public static void UseMicroServiceConsumer(this IMicroServiceBuilder self, Action<MicroServiceConsumerOptions> configurator) { var options = new MicroServiceConsumerOptions(); configurator(options); self.UseMiddleware<MicroServiceConsumerMiddleware>(options); }