Public Event CalculationStarted()
Then I have a console app that registers this object:
Dim chnl As
System.Runtime.Remoting.RemotingConfiguration.RegisterWellKnownServiceType(GetType(Foo), "FOOService", Runtime.Remoting.WellKnownObjectMode.Singleton)
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.
You can create an object and then register it for remoting using the RemotingServices.Marshal method.
Foo f = new Foo();
f.SomeEvent += ...;
System.Runtime.Remoting.RemotingConfiguration.RegisterWellKnownServiceType(GetType(Foo), "FOOService", Runtime.Remoting.WellKnownObjectMode.Singleton);
Thanks! I'll give it a try.
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.