Example #1
0
 public virtual void Dispose()
 {
     if (IocContainer != null)
     {
         IocContainer.Dispose();
     }
 }
Example #2
0
 public void Dispose()
 {
     if (container != null)
     {
         container.Dispose();
     }
 }
 /// <summary>
 ///     Releases resources held by the object.
 /// </summary>
 protected override void OnDispose(bool disposing)
 {
     if (disposing && IocContainer != null)
     {
         IocContainer.Dispose();
     }
     base.OnDispose(disposing);
 }
        public void Dispose()
        {
            //TODO: Call shutdown of modules!

            if (IocContainer != null)
            {
                IocContainer.Dispose();
            }
        }
Example #5
0
            public void Dispose()
            {
                if (mine == null)
                {
                    return;
                }

                if (mine != container)
                {
                    throw new InvalidOperationException("Container changed! Possible multi-thread error, or disposing order mistake!");
                }

                mine.Dispose();
                container = old;
                mine      = null;
            }
Example #6
0
 public void Dispose()
 {
     _container.Dispose();
 }
Example #7
0
 /// <summary>
 /// 释放容器
 /// </summary>
 public void Dispose()
 {
     IocContainer.Dispose();
 }
Example #8
0
 public void MyTestCleanup()
 {
     // remove the registrations, and cache values
     iocContainer.Dispose();
 }
 public void MyTestCleanup()
 {
     iocContainer.Dispose();
 }
Example #10
0
 public static void Cleanup()
 {
     IocContainer.Dispose();
 }
Example #11
0
 void Application_End()
 {
     IocContainer.Dispose();
 }