public void Release(object obj) { _resolvedObjects.Remove(obj); _iocResolver.Release(obj); }
/// <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); }
public void Dispose() { _iocResolver.Release(Object); }
/// <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); }
public void ReleaseHandler(IServiceCommandHandler handler) { //单件对象不会被释放 iocResolver.Release(handler); }