Example #1
0
        public void Reset()
        {
            _onCompletedBound      = false;
            _domainParameter       = null;
            _rootMapParameter      = null;
            _nodeParameter         = null;
            _relationshipParameter = null;

            if (MetadataSet != null)
            {
                FacadeMetadataSet metadataSet = MetadataSet as FacadeMetadataSet;

                if (metadataSet != null)
                {
                    metadataSet.ResetToFacade();
                }
            }

            ResponseParameter = null;

            TransactionStatus = ServerStatus.ProcessingClient;

            if (_firstLink != null)
            {
                ISoapTransactionLinkExecutor executor = _firstLink as ISoapTransactionLinkExecutor;
                executor.TransactionFailed    -= OnTransactionFailed;
                executor.TransactionCompleted -= OnTransactionCompleted;
            }

            if (ServiceProxy != null)
            {
                ServiceProxy.BOCCompleted -= OnSubmitBulkOperationCompleted;
                ServiceProxy.MACompleted  -= OnAddMetadataCompleted;
            }
        }