private IHandleMark_WuQi obj_markdb = null; //标记库引用 /// <summary> /// 该静态函数用于初始化,必须在使用其他功能前提前调用。使用依赖注入 /// </summary> /// <param name="maindb">主库的实现</param> public void InitLog(IHandleMsg_WuQi msgdb, IHandleMark_WuQi markdb) { if (false == CLog_WuQi.b_init) { if (null == obj_logdb) { obj_logdb = msgdb; } if (null == obj_markdb) { obj_markdb = markdb; } // obj_logdb.SynchronousAllRecord(); obj_markdb.SynchronousAllRecord(); CLog_WuQi.b_init = true; } }
/// <summary> /// 该静态函数用于初始化,必须在使用其他功能前提前调用。使用依赖注入 /// </summary> /// <param name="maindb">主库的实现</param> public void InitLog(IHandleMsg_WuQi msgdb,IHandleMark_WuQi markdb) { if (false == CLog_WuQi.b_init) { if (null == obj_logdb) obj_logdb = msgdb; if (null == obj_markdb) obj_markdb = markdb; // obj_logdb.SynchronousAllRecord(); obj_markdb.SynchronousAllRecord(); CLog_WuQi.b_init = true; } }