开发者

Can an IOC Container AssemblyLoad Event / Static Injection?

I anticipate having various assemblies that each contain a static class, with a static property, that might need to be "set" the moment the assembly they are in is loaded. This other post has an example of a static class that could benefit from such a procedure, such as when integration or unit te开发者_如何学运维sts are applied.

I wonder if there is any IOC Container that can register assembly load events, and use reflection in those events to find specified static class/property pairs, and set them - shortly after the assembly has loaded. Yes? No?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜