Parallel EventHandler

I want to notify my class event subscribers without delay and at the same time.

Should I run my own event handler; use some of FCL that support parallelism; or do the default built-in System.EventHandler<T>support this way of event notification?

+3
source share
1 answer

You can use MulticastDelegate.GetInvocationListfor any delegate, and then just call all component delegates in parallel. This is probably the easiest way.

( Delegate[], . , - , .)

+7

Source: https://habr.com/ru/post/1777404/


All Articles