/// <summary> /// Can be overridden by extenders to do special processing of Dispose. /// </summary> /// <param name="methodCall"></param> /// <returns></returns> protected override IMessage Dispose(IMethodCallMessage methodCall) { try { instance.Dispose(); } finally { base.Dispose(methodCall); } return(new ReturnMessage(null, null, 0, methodCall.LogicalCallContext, methodCall)); }
/// <summary> /// Can be overridden by extenders to do special processing of Dispose. /// </summary> /// <param name="targetMethod"></param> /// <returns></returns> protected override object Dispose(MethodInfo targetMethod) { try { instance.Dispose(); } finally { base.Dispose(targetMethod); } return(null); }