We have a WCF publish-subscribe model application, It works fine.
But this part of the code.
foreach (SubList subscriber in subscribers.ToList())
{
try
{
object ClientResult;
ClientResult = publishMethodInfo.Invoke(subscriber.CallBackId, new object[] { ClData });
}
}
Is there any way I invoke all subscribers all at once. As the above code is in a loop fetching each subscriber and publishing. This is causing other subscribers to wait until prior is executed.
Why not invoke them in parallel?