G
Guest
Here is the scenario I want to achieve...
1. An assembly is created "on-the-fly" using the CodeDom compiler.
2. This assembly is then used by a running application.
3. At some point in time the "on-the-fly" assembly changes and is
recompiled. Thus we have on-the-fly version 2.
4. My questions are:
a. What is the best way to introduce the version 2 assembly and not
interrupt the existing instances of types created using version 1? An
AppDomain? A custom designed load and CreateInstance procedure?
b. Is there any way to determine how many instances of version 1 types are
in existence? Another way to say that is how can I automatically determine
whether the version 1 Assembly is still in use by a caller.
c. Assuming that version 2 types have only new methods and properties, i.e.
none of version 1 methods and properties are deleted, is it possible for the
two versions' Assemblies to co-exist? In other words just start using the new
version and let the old become dormant as time elapses?
Your thoughts are appreciated...
1. An assembly is created "on-the-fly" using the CodeDom compiler.
2. This assembly is then used by a running application.
3. At some point in time the "on-the-fly" assembly changes and is
recompiled. Thus we have on-the-fly version 2.
4. My questions are:
a. What is the best way to introduce the version 2 assembly and not
interrupt the existing instances of types created using version 1? An
AppDomain? A custom designed load and CreateInstance procedure?
b. Is there any way to determine how many instances of version 1 types are
in existence? Another way to say that is how can I automatically determine
whether the version 1 Assembly is still in use by a caller.
c. Assuming that version 2 types have only new methods and properties, i.e.
none of version 1 methods and properties are deleted, is it possible for the
two versions' Assemblies to co-exist? In other words just start using the new
version and let the old become dormant as time elapses?
Your thoughts are appreciated...