Hi,
I'm trying to implement my own IChannel implementation for eventually routing ProfilerMessages through a DiagnosticSource.
But it's not being called, why .. do we have to enable something?
We're using
LLBLGen 5.10.2 and Interceptor 2.0.7
Our very basic (for now) Channel
public class MyChannel : IChannel
{
public void Send(ProfilerMessage message)
{
Debug.WriteLine(message.GetType(), nameof(LLBLGenDiagnosticsChannel));
}
public void Flush() { }
public void DisableMessageSending()
{
}
public void EnableMessageSending()
{
}
}
Initialization
InterceptorCore.Initialize("MyApplicationName");
InterceptorCore.RegisterChannel(new MyChannel());
InterceptorCore.EnableMessageSending();
Using DbProviderFactories.GetFactoryClasses() I can see all factories have correctly be replaced by the ProfilerDbProviderFactory.
Kind regards,
Alexander