Beispiel #1
0
 public void Release(object obj)
 {
     _resolvedObjects.Remove(obj);
     _iocResolver.Release(obj);
 }
Beispiel #2
0
 /// <summary>
 /// Releases handler object using Ioc container.
 /// </summary>
 /// <param name="handler">Handler to be released</param>
 public void ReleaseHandler(IEventHandler handler)
 {
     _iocResolver.Release(handler);
 }
 public void ReturnJob(IJob job)
 {
     _iocResolver.Release(job);
 }
Beispiel #4
0
 public void Dispose()
 {
     _iocResolver.Release(Object);
 }
Beispiel #5
0
 /// <summary>
 /// Called by MVC system and releases/disposes given controller instance.
 /// </summary>
 /// <param name="controller">Controller instance</param>
 public override void ReleaseController(IController controller)
 {
     _iocManager.Release(controller);
 }
Beispiel #6
0
 public void ReleaseHandler(IServiceCommandHandler handler)
 {
     //单件对象不会被释放
     iocResolver.Release(handler);
 }