T
Tony Johansson
Hi!
Here in this example I run Main located in assembly named DomainTest. I load
three assembly called AssemblyA, AssemblyB and AssemblyC by using the
process DomainTest where I create the Application Domain. There will only be
one process because the three assemblies will be running in the process of
DomainTest.
Now to my question how will the switching between these three loaded
assemblies be done ???
Will it be something similar to when the OS is swithing between processes.
When you use Application Domain is't the responsibility of the .NET
Framework to handle all the switching between the three asseblies.
static void Main(string[] args)
{
AppDomain myAppDomain = AppDomain.CreateDomain("New Domain");
myAppDomain.ExecuteAssemblyByName("AssemblyA");
myAppDomain.ExecuteAssemblyByName("AssemblyB");
myAppDomain.ExecuteAssemblyByName("AssemblyC");
}
//Tony
Here in this example I run Main located in assembly named DomainTest. I load
three assembly called AssemblyA, AssemblyB and AssemblyC by using the
process DomainTest where I create the Application Domain. There will only be
one process because the three assemblies will be running in the process of
DomainTest.
Now to my question how will the switching between these three loaded
assemblies be done ???
Will it be something similar to when the OS is swithing between processes.
When you use Application Domain is't the responsibility of the .NET
Framework to handle all the switching between the three asseblies.
static void Main(string[] args)
{
AppDomain myAppDomain = AppDomain.CreateDomain("New Domain");
myAppDomain.ExecuteAssemblyByName("AssemblyA");
myAppDomain.ExecuteAssemblyByName("AssemblyB");
myAppDomain.ExecuteAssemblyByName("AssemblyC");
}
//Tony