public HomeController(ILogger <HomeController> logger, IActiveProducerFactory activeProducerFactory) { this.logger = logger; this.activeProducerFactory = activeProducerFactory; }
/// <summary> /// 创建客户端生产者 /// </summary> /// <param name="activeProducerFactory"></param> /// <returns></returns> public static IActiveClientProducer Create(this IActiveProducerFactory activeProducerFactory) { return(activeProducerFactory.Create(Options.DefaultName)); }