public void UpgradeFacade(TransactionFramework.ISoapTransactionLink transactionLink, ServerObjects.Relationship serviceRelationship) { if (InProcessRelationships.ContainsKey(transactionLink)) { FacadeRelationship facadeRelationship = InProcessRelationships[transactionLink]; InProcess.InProcessRelationship inProcessRelationship = facadeRelationship.BaseRelationship as InProcess.InProcessRelationship; if (inProcessRelationship != null) { SoapRelationship soapRelationship = new SoapRelationship(inProcessRelationship, serviceRelationship); facadeRelationship.BaseRelationship = soapRelationship; InProcessRelationships.Remove(transactionLink); ProxyRelationships[facadeRelationship.Id] = facadeRelationship; /// TODO: Need to consider a better way to do this. I don't like that there is a need to call this afterwards and maybe it should be done when creating the SoapRelationship. I don't like it because it doesn't have to be done everytime a new SoapRelationship is created e.g. if the SoapNode is created from a Service.RE as opposed to a returned call like here. soapRelationship.ProcessDelayedActions(); } } }
public void UpgradeFacade(TransactionFramework.ISoapTransactionLink transactionLink, ServerObjects.Relationship serviceRelationship) { if (InProcessRelationships.ContainsKey(transactionLink)) { FacadeRelationship facadeRelationship = InProcessRelationships[transactionLink]; InProcess.InProcessRelationship inProcessRelationship = facadeRelationship.BaseRelationship as InProcess.InProcessRelationship; if (inProcessRelationship != null) { SoapRelationship soapRelationship = new SoapRelationship(inProcessRelationship, serviceRelationship); facadeRelationship.BaseRelationship = soapRelationship; InProcessRelationships.Remove(transactionLink); ProxyRelationships[facadeRelationship.Id] = facadeRelationship; /// TODO: Need to consider a better way to do this. I don't like that there is a need to call this afterwards and maybe it should be done when creating the SoapRelationship. I don't like it because it doesn't have to be done everytime a new SoapRelationship is created e.g. if the SoapNode is created from a Service.RE as opposed to a returned call like here. soapRelationship.ProcessDelayedActions(); } } }