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