c# - Dynamic load assembly, how to specify the abstraction? -
assuming have 3 levels of abstraction in different dll, composing application
- primitive
- basic implements primitive
- foo implements basic
and application load dynamically foo (assembly.load, activator...), default called currentdomain_assemblyresolve event because can not find basic class implementation can enter correct path load basic class.
based on operation of business, application has active in 100% of time. can occur alter implementation of foo (whether bug fix or change functionality) so, have change path dll (configuration), , next time function called "another" foo used.
it has worked well, if have need load other basic class again (in case recompile basic , foo), gotta restart application, there way indicate abstraction used when go instantiate new foo?
i know assemblies never discharged (older versions), not problem me.
Comments
Post a Comment