Inheritance: IDescriptorTypeProxy
Example #1
0
        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;
            }
        }
Example #3
0
        public DescriptorProxy(Guid nodeId, SoapDescriptorType descriptorType, IRelationshipProxy relationship, SoapRelationship soapRelationship)
        {
            Relationship = relationship;

            NodeId = nodeId;

            DescriptorType = DescriptorTypeProxy.GetDescriptorType(descriptorType);
        }