public bool IsEnabled(byte level, long keywords)
 {
     ServiceBusEventListener.EnsureInitialized();
     if (!this.EnableDiagnosticsTracing)
     {
         return(ServiceBusEventListener.useDiagnosticsTracing);
     }
     return(true);
 }
 public bool IsEnabled()
 {
     ServiceBusEventListener.EnsureInitialized();
     if (ServiceBusEventListener.useDiagnosticsTracing)
     {
         return(true);
     }
     return(this.EnableDiagnosticsTracing);
 }
 public void WriteEvent(EventWrittenEventArgs eventDescriptor)
 {
     ServiceBusEventListener.EnsureInitialized();
     if (ServiceBusEventListener.useDiagnosticsTracing)
     {
         this.WriteToDiagnosticsTrace(eventDescriptor, true);
         return;
     }
     if (this.EnableDiagnosticsTracing)
     {
         this.WriteToDiagnosticsTrace(eventDescriptor, false);
     }
 }