private void PluginReceiveClass_OnMessageReceived(Model.Message e) { foreach (Plugin plugin in loadedPlugins_) { if (plugin.PluginSendClass != null) { if (plugin.IsSendStarted) { plugin.PluginSendClass.SendMessage(e); } } } }
ThreadPool
ThreadPool.QueueUserWorkItem(o => plugin.PluginSendClass.SendMessage(e));
Task
... Task.Factory.StartNew( () => plugin.PluginSendClass.SendMessage(e) ); ...
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)