Exemplo n.º 1
0
        public static NodeTypeProxy GetNodeType(SoapNodeType soapNodeType)
        {
            lock (_padlock)
            {
                if (_nodeTypes == null)
                {
                    _nodeTypes = new Dictionary <Guid, NodeTypeProxy>();
                }

                NodeTypeProxy nodeType;

                if (_nodeTypes.ContainsKey(soapNodeType.Id))
                {
                    nodeType = _nodeTypes[soapNodeType.Id];
                }
                else
                {
                    nodeType = new NodeTypeProxy(soapNodeType);

                    _nodeTypes[soapNodeType.Id] = nodeType;
                }

                return(nodeType);
            }
        }
Exemplo n.º 2
0
        public static NodeTypeProxy GetNodeType(SoapNodeType soapNodeType)
        {
            lock (_padlock)
            {
                if (_nodeTypes == null)
                {
                    _nodeTypes = new Dictionary<Guid, NodeTypeProxy>();
                }

                NodeTypeProxy nodeType;

                if (_nodeTypes.ContainsKey(soapNodeType.Id))
                {
                    nodeType = _nodeTypes[soapNodeType.Id];
                }
                else
                {
                    nodeType = new NodeTypeProxy(soapNodeType);

                    _nodeTypes[soapNodeType.Id] = nodeType;
                }

                return nodeType;
            }
        }
Exemplo n.º 3
0
        public INodeTypeProxy GetNodeType(SoapNodeType soapNodeType)
        {
            if (!IsInitialised)
            {
                throw new NotSupportedException("This node type manager has not been initialised.");
            }

            return(_nodeTypesById[soapNodeType.Id]);
        }
Exemplo n.º 4
0
        public INodeTypeProxy GetNodeType(SoapNodeType soapNodeType)
        {
            if (!IsInitialised)
            {
                throw new NotSupportedException("This node type manager has not been initialised.");
            }

            return _nodeTypesById[soapNodeType.Id];
        }
Exemplo n.º 5
0
 public NodeTypeProxy(SoapNodeType soapNodeType)
 {
     BaseSoapNodeType = soapNodeType;
 }
Exemplo n.º 6
0
 public NodeTypeProxy(SoapNodeType soapNodeType)
 {
     BaseSoapNodeType = soapNodeType;
 }