public static DescriptorTypeProxy GetDescriptorType(SoapDescriptorType soapDescriptorType) { lock (_padlock) { if (_descriptorTypes == null) { _descriptorTypes = new Dictionary <Guid, DescriptorTypeProxy>(); } DescriptorTypeProxy descriptorType; if (_descriptorTypes.ContainsKey(soapDescriptorType.Id)) { descriptorType = _descriptorTypes[soapDescriptorType.Id]; } else { descriptorType = new DescriptorTypeProxy(soapDescriptorType); _descriptorTypes[soapDescriptorType.Id] = descriptorType; } return(descriptorType); } }
public static DescriptorTypeProxy GetDescriptorType(SoapDescriptorType soapDescriptorType) { lock (_padlock) { if (_descriptorTypes == null) { _descriptorTypes = new Dictionary<Guid, DescriptorTypeProxy>(); } DescriptorTypeProxy descriptorType; if (_descriptorTypes.ContainsKey(soapDescriptorType.Id)) { descriptorType = _descriptorTypes[soapDescriptorType.Id]; } else { descriptorType = new DescriptorTypeProxy(soapDescriptorType); _descriptorTypes[soapDescriptorType.Id] = descriptorType; } return descriptorType; } }
public DescriptorProxy(Guid nodeId, SoapDescriptorType descriptorType, IRelationshipProxy relationship, SoapRelationship soapRelationship) { Relationship = relationship; NodeId = nodeId; DescriptorType = DescriptorTypeProxy.GetDescriptorType(descriptorType); }