public void Unprepare(IRemoteServerPlan plan) { if (plan is IRemoteServerExpressionPlan) { UnprepareExpression((IRemoteServerExpressionPlan)plan); } else { UnprepareStatement((IRemoteServerStatementPlan)plan); } }
private void ClearCleanup(IRemoteServerPlan plan) { for (int index = 0; index < _unprepareList.Count; index++) { if (Object.ReferenceEquals(plan, _unprepareList[index])) { _unprepareList.RemoveAt(index); break; } } }
public void Unprepare(IRemoteServerPlan plan) { try { var channel = GetServiceInterface(); IAsyncResult result = channel.BeginUnprepareBatch(((ClientPlan)plan).PlanHandle, null, null); result.AsyncWaitHandle.WaitOne(); channel.EndUnprepareBatch(result); } catch (FaultException <DataphorFault> fault) { throw DataphorFaultUtility.FaultToException(fault.Detail); } catch (CommunicationException ce) { ReportCommunicationError(); throw new ServerException(ServerException.Codes.CommunicationFailure, ErrorSeverity.Environment, ce); } }
public LocalPlan(LocalProcess process, IRemoteServerPlan plan, PlanDescriptor planDescriptor) : base() { _process = process; _plan = plan; _descriptor = planDescriptor; }
private void ReportCleanup(IRemoteServerPlan plan) { _unprepareList.Add(plan); }