Click or drag to resize

ThreadSafeGraphCollection Class

Thread Safe decorator around a Graph collection.
Inheritance Hierarchy

Namespace:  VDS.RDF
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public class ThreadSafeGraphCollection : WrapperGraphCollection

The ThreadSafeGraphCollection type exposes the following members.

Constructors
  NameDescription
Public methodThreadSafeGraphCollection
Creates a new Thread Safe decorator around the default GraphCollection.
Public methodThreadSafeGraphCollection(BaseGraphCollection)
Creates a new Thread Safe decorator around the supplied graph collection.
Top
Properties
Methods
  NameDescription
Protected methodAdd
Adds a Graph to the Collection.
(Overrides WrapperGraphCollectionAdd(IGraph, Boolean).)
Public methodContains
Checks whether the Graph with the given Uri exists in this Graph Collection.
(Overrides WrapperGraphCollectionContains(Uri).)
Public methodDispose
Disposes of the Graph Collection.
(Overrides WrapperGraphCollectionDispose.)
Protected methodEnterReadLock
Enters the read lock.
Protected methodEnterWriteLock
Enters the write lock.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodExitReadLock
Exits the read lock.
Protected methodExitWriteLock
Exits the write lock.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator
Gets the Enumerator for the Collection.
(Overrides WrapperGraphCollectionGetEnumerator.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodRaiseGraphAdded
Helper method which raises the Graph Added event manually.
(Inherited from BaseGraphCollection.)
Protected methodRaiseGraphRemoved
Helper method which raises the Graph Removed event manually.
(Inherited from BaseGraphCollection.)
Protected methodRemove
Removes a Graph from the Collection.
(Overrides WrapperGraphCollectionRemove(Uri).)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventGraphAdded
Event which is raised when a Graph is added to the Collection
(Inherited from BaseGraphCollection.)
Public eventGraphRemoved
Event which is raised when a Graph is removed from the Collection
(Inherited from BaseGraphCollection.)
Top
Fields
  NameDescription
Protected field_graphs
Underlying Graph Collection.
(Inherited from WrapperGraphCollection.)
Top
Remarks
Dependings on your platform this either provides MRSW concurrency via a ReaderWriterLockSlim or exclusive access concurrency via a Monitor.
See Also