Apr 8, 2008 at 2:53 PM
Edited Apr 9, 2008 at 1:21 PM
I have created a Provider and Listener Class (console project) in order to learn about the instrumentation features.
However, my code does not enter the handler in my Listener class at all.
Below is my code.
I really would appreciate any help on this.
The Provider Class -
Public Class CProvider
Public Sub GetDataFromDB()
' do work here
' all the work is routine code is put here
' Raise an event here as have just connected to the db
RaiseEvent ConnectedToDB("Have just opened a connection")
Catch ex As Exception
The Listener class -
Public Class CListener
' This is the event handler for the EL instrumentation
Public Sub RespondToProviderEvent(ByVal sender As Object, _
ByVal e As EventArgs)
Console.WriteLine("A connection has been made to the Db" )