A question about async call of an assembly...
-
Hello, I would like to learn that is there any way to execute an assembly in an application domain, asynchron. I attached the sample source code that I want to execute;
AppDomainSetup setup = new AppDomainSetup(); setup.ApplicationBase = @"C:\Lab\appdomainchildcs\appdomainchildcs\bin\Debug"; AppDomain domain = AppDomain.CreateDomain("RemoteDomain", null, setup); domain.ExecuteAssembly("appdomainchildcs.exe"); AppDomain.Unload(domain);
In the above code, I would like to execute "appdomainchildcs.exe", asynchronus. I would be appreciated, if anybody help me about the trouble. Thank you...Orkun GEDiK SAP R/3 BASIS and Development Consultant ASTRON
-
Hello, I would like to learn that is there any way to execute an assembly in an application domain, asynchron. I attached the sample source code that I want to execute;
AppDomainSetup setup = new AppDomainSetup(); setup.ApplicationBase = @"C:\Lab\appdomainchildcs\appdomainchildcs\bin\Debug"; AppDomain domain = AppDomain.CreateDomain("RemoteDomain", null, setup); domain.ExecuteAssembly("appdomainchildcs.exe"); AppDomain.Unload(domain);
In the above code, I would like to execute "appdomainchildcs.exe", asynchronus. I would be appreciated, if anybody help me about the trouble. Thank you...Orkun GEDiK SAP R/3 BASIS and Development Consultant ASTRON
Hello Make a second
thread
and call your code from that thread.Regards:rose:
-
Hello Make a second
thread
and call your code from that thread.Regards:rose:
Thank you for your response, Nader. Is there any other way to do it, except calling an assembly in a thread? Regards,
Orkun GEDiK SAP R/3 BASIS and Development Consultant ASTRON
-
Thank you for your response, Nader. Is there any other way to do it, except calling an assembly in a thread? Regards,
Orkun GEDiK SAP R/3 BASIS and Development Consultant ASTRON
Well, this is what asynchronicity is all about. If you were looking for something like callback functions, I don't know any
BeginLoad()
methods. Yet this should work the same.Regards:rose:
-
Well, this is what asynchronicity is all about. If you were looking for something like callback functions, I don't know any
BeginLoad()
methods. Yet this should work the same.Regards:rose:
Thank you for your response.
Orkun GEDiK SAP R/3 BASIS and Development Consultant ASTRON