Example #1
0
        //public IMetadataSet GetMetadata(Guid metadataId, string name, string value, INode node, IRelationship relationship, ConnectionType connectionType)
        //{
        //    Soap.SoapMetadataSet newMetadatSet = new Soap.SoapMetadataSet(MapManager);
        //    newMetadatSet.Id = metadataId;
        //    newMetadatSet.Name = name;
        //    newMetadatSet.Value = value;
        //    newMetadatSet.Node = node;
        //    newMetadatSet.Relationship = relationship;
        //    newMetadatSet.ConnectionType = connectionType;

        //    Metadata[metadataId] = newMetadatSet;

        //    return newMetadatSet;
        //}

        public void UpgradeFacade(ISoapTransactionLink link, ServerObjects.Metadata serviceMetadata)
        {
            if (!InProcessMetadata.ContainsKey(link))
            {
                return;
            }

            FacadeMetadataSet facadeMetadataSet = InProcessMetadata[link];

            InProcess.InProcessMetadata inProcessMetadata = facadeMetadataSet.BaseMetadata as InProcess.InProcessMetadata;

            if (inProcessMetadata == null)
            {
                return;
            }

            Soap.SoapMetadataSet soapMetadataSet = new Soap.SoapMetadataSet(inProcessMetadata, serviceMetadata);

            IMetadataSetManager soapMetadataSetManager      = soapMetadataSet as IMetadataSetManager;
            IMetadataSetManager inProcessMetadataSetManager = inProcessMetadata as IMetadataSetManager;

            if (soapMetadataSetManager != null && inProcessMetadataSetManager != null)
            {
                soapMetadataSetManager.Container = inProcessMetadataSetManager.Container;
            }

            facadeMetadataSet.BaseMetadata = soapMetadataSet;
            Metadata[soapMetadataSet.Id]   = soapMetadataSet;
            InProcessMetadata.Remove(link);
        }
Example #2
0
 public void AddTransaction(ISoapTransactionLink transaction)
 {
     NumberOfTransactions++;
     transaction.TransactionLinkId = NumberOfTransactions;
     transaction.OriginChain       = this;
     Transactions.Add(transaction.TransactionLinkId, transaction);
     LastLink.AddNextLink(transaction);
     LastLink = transaction;
 }
Example #3
0
        public void FillBulkOperations(ObservableCollection <Service.BOR> bulkOperationResponses)
        {
            foreach (Service.BOR bulkOperationResponse in bulkOperationResponses)
            {
                if (Transactions.ContainsKey(bulkOperationResponse.I))
                {
                    ISoapTransactionLink link = Transactions[bulkOperationResponse.I];

                    if (link is ISoapTransactionLinkExecutor)
                    {
                        ISoapTransactionLinkExecutor transactionLinkExecutor = link as ISoapTransactionLinkExecutor;

                        transactionLinkExecutor.ConsumeBulkOperationResponse(bulkOperationResponse);
                    }
                }
                else
                {
                    DebugLogger.Instance.LogMsg("A bulk operation response was returned that has no caller in this transaction chain.");
                }
            }
        }
Example #4
0
        public IMetadataSet GetMetadata(ISoapTransactionLink link, Guid domainId, Guid rootMapId, string name, string value, INode node, IRelationship relationship, ConnectionType connectionType)
        {
            /// Return a FacadeNode containing an InProcessMetadataSet
            InProcess.InProcessMetadata newMetadataSet = new InProcess.InProcessMetadata(MapManager);
            newMetadataSet.OriginLink     = link;
            newMetadataSet.Id             = Guid.Empty;
            newMetadataSet.DomainId       = domainId;
            newMetadataSet.RootMapId      = rootMapId;
            newMetadataSet.Name           = name;
            newMetadataSet.Value          = value;
            newMetadataSet.Node           = node;
            newMetadataSet.Relationship   = relationship;
            newMetadataSet.ConnectionType = connectionType;

            FacadeMetadataSet facadeMetadataSet = new FacadeMetadataSet();

            facadeMetadataSet.BaseMetadata = newMetadataSet;

            newMetadataSet.Facade   = facadeMetadataSet;
            InProcessMetadata[link] = facadeMetadataSet;

            return(facadeMetadataSet);
        }
 public void AddNextLink(ISoapTransactionLink nextLink)
 {
     _firstLink = nextLink;
 }
 public void AddNextLink(ISoapTransactionLink nextLink)
 {
     // Just ignore this call.
 }
 public void AddNextLink(ISoapTransactionLink nextLink)
 {
     _firstLink = nextLink;
 }
 public void AddNextLink(ISoapTransactionLink nextLink)
 {
     // Just ignore this call.
 }
Example #9
0
 public void SetParameterValue(ISoapTransactionLink transactionLink)
 {
     ChainedTransactionLink = transactionLink;
     _parameterValueType    = ParameterType.MapParameter;
 }
Example #10
0
        //public IMetadataSet GetMetadata(Guid metadataId, string name, string value, INode node, IRelationship relationship, ConnectionType connectionType)
        //{
        //    Soap.SoapMetadataSet newMetadatSet = new Soap.SoapMetadataSet(MapManager);
        //    newMetadatSet.Id = metadataId;
        //    newMetadatSet.Name = name;
        //    newMetadatSet.Value = value;
        //    newMetadatSet.Node = node;
        //    newMetadatSet.Relationship = relationship;
        //    newMetadatSet.ConnectionType = connectionType;

        //    Metadata[metadataId] = newMetadatSet;

        //    return newMetadatSet;
        //}

        public void UpgradeFacade(ISoapTransactionLink link, ServerObjects.Metadata serviceMetadata)
        {
            if (!InProcessMetadata.ContainsKey(link))
            {
                return;
            }

            FacadeMetadataSet facadeMetadataSet = InProcessMetadata[link];
            InProcess.InProcessMetadata inProcessMetadata = facadeMetadataSet.BaseMetadata as InProcess.InProcessMetadata;

            if (inProcessMetadata == null)
            {
                return;
            }

            Soap.SoapMetadataSet soapMetadataSet = new Soap.SoapMetadataSet(inProcessMetadata, serviceMetadata);

            IMetadataSetManager soapMetadataSetManager = soapMetadataSet as IMetadataSetManager;
            IMetadataSetManager inProcessMetadataSetManager = inProcessMetadata as IMetadataSetManager;

            if (soapMetadataSetManager != null && inProcessMetadataSetManager != null)
            {
                soapMetadataSetManager.Container = inProcessMetadataSetManager.Container;
            }

            facadeMetadataSet.BaseMetadata = soapMetadataSet;
            Metadata[soapMetadataSet.Id] = soapMetadataSet;
            InProcessMetadata.Remove(link);
        }
Example #11
0
        public IMetadataSet GetMetadata(ISoapTransactionLink link, Guid domainId, Guid rootMapId, string name, string value, INode node, IRelationship relationship, ConnectionType connectionType)
        {
            /// Return a FacadeNode containing an InProcessMetadataSet
            InProcess.InProcessMetadata newMetadataSet = new InProcess.InProcessMetadata(MapManager);
            newMetadataSet.OriginLink = link;
            newMetadataSet.Id = Guid.Empty;
            newMetadataSet.DomainId = domainId;
            newMetadataSet.RootMapId = rootMapId;
            newMetadataSet.Name = name;
            newMetadataSet.Value = value;
            newMetadataSet.Node = node;
            newMetadataSet.Relationship = relationship;
            newMetadataSet.ConnectionType = connectionType;

            FacadeMetadataSet facadeMetadataSet = new FacadeMetadataSet();
            facadeMetadataSet.BaseMetadata = newMetadataSet;

            newMetadataSet.Facade = facadeMetadataSet;
            InProcessMetadata[link] = facadeMetadataSet;

            return facadeMetadataSet;
        }
 public void SetParameterValue(ISoapTransactionLink transactionLink)
 {
     ChainedTransactionLink = transactionLink;
     _parameterValueType = ParameterType.MapParameter;
 }
Example #13
0
 public void AddTransaction(ISoapTransactionLink transaction)
 {
     NumberOfTransactions++;
     transaction.TransactionLinkId = NumberOfTransactions;
     transaction.OriginChain = this;
     Transactions.Add(transaction.TransactionLinkId, transaction);
     LastLink.AddNextLink(transaction);
     LastLink = transaction;
 }