c# - how do I subscribe to an event in raised in another assembly -


i have solution contains 3 project. 1 project handles asynchronous communinications. when has completed it's callback, raises event somethingcompleted. how subscribe event project in same solution?

i have event handlers built in receiving project not see event in sending project.

you need have reference class raising event register event handler.

once have that, it's done registering other event handler:

foo.somethingcompleted += (sender, e) => this.dosomething(); 

Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -