K
Kerem Gümrükcü
Hi,
i have a (simple) dynamic plugin architecture and i want
to call a member function from the dynamically loaded
assembly and its instanciated class. The Code looks like
this:
foreach (KeyValuePair<string, Assembly> PlugInAssembly in
dictAvailablePlugins)
{
try
{
Object oRestartsPluginEntryClass =
PlugInAssembly.Value.CreateInstance(PlugInAssembly.Value.GetName().Name +
".RestartsPluginEntryClass", true);
if (oRestartsPluginEntryClass != null)
{
MethodInfo miRestartsServiceError =
oRestartsPluginEntryClass.GetType().GetMethod("RestartsServiceError");
if (miRestartsServiceError != null)
{
miRestartsServiceError.Invoke(oRestartsPluginEntryClass, new object[] {
SourceProcess, SourceService, e });
}
}
But i want the "Invoke" asynchronously made, something like
"BeginInvoke".How can this be done?
Regards
Kerem
--
i have a (simple) dynamic plugin architecture and i want
to call a member function from the dynamically loaded
assembly and its instanciated class. The Code looks like
this:
foreach (KeyValuePair<string, Assembly> PlugInAssembly in
dictAvailablePlugins)
{
try
{
Object oRestartsPluginEntryClass =
PlugInAssembly.Value.CreateInstance(PlugInAssembly.Value.GetName().Name +
".RestartsPluginEntryClass", true);
if (oRestartsPluginEntryClass != null)
{
MethodInfo miRestartsServiceError =
oRestartsPluginEntryClass.GetType().GetMethod("RestartsServiceError");
if (miRestartsServiceError != null)
{
miRestartsServiceError.Invoke(oRestartsPluginEntryClass, new object[] {
SourceProcess, SourceService, e });
}
}
But i want the "Invoke" asynchronously made, something like
"BeginInvoke".How can this be done?
Regards
Kerem
--