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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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