/// <summary> /// Initializes the binding. /// </summary> protected BaseBinding( NamespaceTable namespaceUris, IEncodeableFactory factory, EndpointConfiguration configuration) { m_messageContext = new ServiceMessageContext { MaxStringLength = configuration.MaxStringLength, MaxByteStringLength = configuration.MaxByteStringLength, MaxArrayLength = configuration.MaxArrayLength, MaxMessageSize = configuration.MaxMessageSize, Factory = factory, NamespaceUris = namespaceUris }; }
/// <summary> /// Creates a factory by copying the table from another factory. /// </summary> public EncodeableFactory(IEncodeableFactory factory) { m_encodeableTypes = new Dictionary <ExpandedNodeId, System.Type>(); #if DEBUG m_instanceId = Interlocked.Increment(ref m_globalInstanceCount); #endif lock (factory.SyncRoot) { foreach (KeyValuePair <ExpandedNodeId, System.Type> current in factory.EncodeableTypes) { m_encodeableTypes.Add(current.Key, current.Value); } } }
/// <summary> /// Returns the system type for the datatype. /// </summary> public static Type GetSystemType(NodeId datatypeId, IEncodeableFactory factory) { return(TypeInfo.GetSystemType(datatypeId, factory)); }