开发者

Can an IOC Container AssemblyLoad Event / Static Injection?

开发者 https://www.devze.com 2023-01-08 17:17 出处:网络
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 exa

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

精彩评论

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