开发者

Is there a way to change referenced library files during processing?

I have a .NET customer framework that functions much like a Workflow. It uses reflection to get a listing of all o开发者_开发技巧f the processes it is capable of from a specific folder, and starts them via reflection with a known start point (all of them have a method called "Process"). Since these files are only called to do the processing and not part of the compile... is there a way for me to be able to drop in a new reference library (DLL) for one of the processes that is being updated without restarting the whole process?

Here is my flow...

START

  • Load list of references
  • Load work, assign to references
  • After X Time, refresh references (or on WCF refresh command being sent)

Is it possible to do this, or do I do I need to actually stop and restart the assembly base to be able to recognized the new reference file?


Yes you can with Assembly.Load but I think you need to look at MEF first.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜