コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AspNetInstrumentation"/> class.
 /// </summary>
 /// <param name="options">Configuration options for ASP.NET instrumentation.</param>
 public AspNetInstrumentation(AspNetInstrumentationOptions options)
 {
     this.httpInListener = new HttpInListener(options);
 }
コード例 #2
0
 public AspNetCoreInstrumentation(HttpInListener httpInListener)
 {
     this.diagnosticSourceSubscriber = new DiagnosticSourceSubscriber(httpInListener, null);
     this.diagnosticSourceSubscriber.Subscribe();
 }