摘要: //所有的service继承一个公共的接口,根据这个公共接口进行注入 //未处理泛型,所以此处的类型需要使用公共接口 public class RepositoryDIFactory { private static RepositoryDIFactory data; public static R 阅读全文
posted @ 2022-04-13 18:24 Hey,Coder! 阅读(55) 评论(0) 推荐(0)
摘要: public List<Assembly> GetAssemblyList() { List<Assembly> assemblyList = new List<Assembly>(); DependencyContext dependencyContext = DependencyContext. 阅读全文
posted @ 2022-04-13 18:22 Hey,Coder! 阅读(228) 评论(0) 推荐(0)
摘要: public static bool RunningModeIsDebug { get { var assebly = Assembly.GetEntryAssembly(); if (assebly == null) { assebly = new StackTrace().GetFrames() 阅读全文
posted @ 2022-04-13 09:36 Hey,Coder! 阅读(949) 评论(0) 推荐(0)