Exemplo n.º 1
0
 public static ButterflyModuleHandler Handle(IServiceTracer serviceTracer)
 {
     if (_butterflyHandler == null)
     {
         _butterflyHandler = new ButterflyModuleHandler(serviceTracer);
     }
     return(_butterflyHandler);
 }
 public static RabbitMQEventBusModuleOption AddButterfly(this RabbitMQEventBusModuleOption build, IServiceTracer tracer)
 {
     build.AddModule(ButterflyModuleHandler.Handle(tracer));
     return(build);
 }
 /// <summary>
 /// Butterfly已停止维护
 /// </summary>
 /// <param name="build"></param>
 /// <param name="tracer"></param>
 /// <returns></returns>
 public static RabbitMQEventBusModuleOption AddButterfly(this RabbitMQEventBusModuleOption build)
 {
     build.AddModule(ButterflyModuleHandler.Handle(build.ApplicationServices.GetRequiredService <IServiceTracer>()));
     return(build);
 }