public DiagnosticModule(IConfigurationRoot jimuAppSettings) : base(jimuAppSettings) { _options = jimuAppSettings.GetSection(typeof(DiagnosticServerOptions).Name).Get <DiagnosticServerOptions>(); if (_options == null) { _options = new DiagnosticServerOptions(); } }
public DiagnosticServer(DiagnosticServerOptions options) { _diagnosticListener = new DiagnosticListener(ListenerName); _options = options; }