Use Nuget System.Diagnostics.DiagnosticSource - DiagnosticsListener doesnt work

Hi,

Has anyone every tried to use the Nuget Package System.Diagnostics.DiagnosticSource?

I tried to use DiagnosticsListener and subscribe too all Listeners but I didn't get anything:

DiagnosticListener.AllListeners.Subscribe(new CallbackObserver((listener) => {
System.Diagnostics.Debug.WriteLine("LISTENER: " + listener.Name);
}));

I want to know when a HTTP Request was done. Has anyone every found a way to use this Nuget package? I tried several versions (4.0.0, 4.3.0 or 4.4.0) I tested this in an Android and iOS application.

Thanks.

(Sorry if this might sound like a stupid question, I am not 100% familiar with Xamarin. I'm a beginner.)

Sign In or Register to comment.