public void Publish(MqttNetTraceMessage traceMessage) { TraceMessagePublished?.Invoke(this, new MqttNetTraceMessagePublishedEventArgs(traceMessage)); }
private static void Publish(string source, MqttTraceLevel traceLevel, Exception exception, string message) { TraceMessagePublished?.Invoke(null, new MqttTraceMessagePublishedEventArgs(Environment.CurrentManagedThreadId, source, traceLevel, message, exception)); }