Ok, lets say I have a class: Public
Inherits MarshalByRefObject
Public Event CalculationStarted()
Public Sub
New()
Console.WriteLine("Hello!")
RaiseEvent CalculationStarted()
End Sub
End Class
Then I have a console app that registers this object:
Sub Main()
Dim chnl As New System.Runtime.Remoting.Channels.Tcp.TcpChannel(1234)
System.Runtime.Remoting.Channels.ChannelServices.RegisterChannel(chnl)
System.Runtime.Remoting.RemotingConfiguration.RegisterWellKnownServiceType(GetType(Foo), "FOOService", Runtime.Remoting.WellKnownObjectMode.Singleton)
End Sub
I would like to have an even handeler in the console app to handle various events as they happen in the object, but I can't for the life of me figure out how to get a handle to hook to the objects event.
Any Ideas?
Thanks
Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.