コード例 #1
0
 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;
 }