jjzjj

SessionInitServiceManager

全部标签

c# - 这是 "Bastard injection anti-pattern"的一个很好的例子吗?

我看到首席开发人员正在编写这样的代码,并且在阅读MarkSeemann的书“.NET中的依赖注入(inject)”时,我想知道特定的"new"是否是“外来的”,因此是“BastardInjection”“??publicclassSessionInitServiceManager{protectedreadonlyICESTraceManager_traceManager;protectedreadonlyILogger_logger;protectedreadonlyIAggregateCalls_aggregator;protectedreadonlyIMultiCoreRepos