Exemplo n.º 1
0
 /// <summary>
 /// 重置IOC容器到初始状态
 /// </summary>
 public static void Reset()
 {
     _factory = _cloneFactory;
 }
Exemplo n.º 2
0
 /// <summary>
 /// 设置当前IOC容器实例-替换默认的IOC容器
 /// </summary>
 /// <param name="objectBuilder"></param>
 public static void SetCurrent(OfflineObjectBuilder objectBuilder)
 {
     _factory = objectBuilder.InternalOfflineObjectFactory;
 }