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