获取当前方法所在的类名:System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.Name
判断当下运行是不是处于在调试的状态
public static bool IsDebugAttached => System.Diagnostics.Debugger.IsAttached; //
IOC容器:Unity——了解生命周期及一个接口多个实现进行注册: https://www.cnblogs.com/dotnet261010/p/9054201.html
BlockingCollection<T>
是一个线程安全集合类,实现制造者-使用者(生产者-消费者)模式