Class ThreadSafeQNameOutputMapper
Thread Safe version of the QNameOutputMapper.
Inherited Members
Namespace: VDS.RDF
Assembly: dotNetRdf.dll
Syntax
public class ThreadSafeQNameOutputMapper : QNameOutputMapper, INamespaceMapper, IDisposable
Constructors
| Edit this page View SourceThreadSafeQNameOutputMapper(INamespaceMapper, IUriFactory)
Creates a new Thread Safe QName Output Mapper.
Declaration
public ThreadSafeQNameOutputMapper(INamespaceMapper nsmapper, IUriFactory uriFactory = null)
Parameters
Type | Name | Description |
---|---|---|
INamespaceMapper | nsmapper | Namespace Mapper. |
IUriFactory | uriFactory | The factory to use when creating new Uri instances. If not specified, defaults to Root. |
Methods
| Edit this page View SourceAddNamespace(string, Uri)
Adds a Namespace to the QName Output Mapper.
Declaration
public override void AddNamespace(string prefix, Uri uri)
Parameters
Type | Name | Description |
---|---|---|
string | prefix | Prefix. |
Uri | uri | Namespace URI. |
Overrides
| Edit this page View SourceAddToCache(string, QNameMapping)
Adds a QName Mapping to the Cache in a Thread Safe way.
Declaration
protected override void AddToCache(string key, QNameMapping value)
Parameters
Type | Name | Description |
---|---|---|
string | key | Key. |
QNameMapping | value | Value. |