public ServiceTracer(ITracer tracer, IHostingEnvironment hostingEnvironment, IOptions <ButterflyOptions> options)
 {
     _tracer             = tracer ?? throw new ArgumentNullException(nameof(tracer));
     _hostingEnvironment = hostingEnvironment;
     _butterflyOptions   = options.Value;
     _hostName           = Dns.GetHostName();
 }
示例#2
0
 public ButterflySenderProvider(IOptions <ButterflyOptions> options)
 {
     _options = options.Value;
 }
示例#3
0
 public ButterflyDispatcherProvider(IEnumerable <IDispatchCallback> dispatchCallbacks, IOptions <ButterflyOptions> options)
 {
     _dispatchCallbacks = dispatchCallbacks;
     _options           = options.Value;
 }
示例#4
0
 public ServiceTracerProvider(ITracer tracer, IHostingEnvironment hostingEnvironment, IOptions <ButterflyOptions> options)
 {
     _tracer             = tracer;
     _options            = options.Value;
     _hostingEnvironment = hostingEnvironment;
 }
示例#5
0
 public RequestTracer(IServiceTracer tracer, IOptions <ButterflyOptions> options)
 {
     _tracer  = tracer;
     _options = options.Value;
 }