The ClientScope type exposes the following members.

Constructors

  Name Description
Public method ClientScope
Initializes a new instance of ClientScope class with the given ClientCacheBase.

Methods

  Name Description
Public method AddRef(Object)
Marks an entity as needed. Needed entities are not detached/released from the context until the client scope is disposed.
Public method AddRef(Type)
Mark all entities of a given type as needed. All entities of that type will not be detached from the context until the client scope is disposed.
Public method Dispose
Marks the scope as disposed. Entities that were marked needed by a disposed scope may be disposed of (evicted from the cache, detached from context) unless they are needed by other active scopes.
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method Release(Object)
Unmark a needed entity.
Public method Release(Type)
Unmark a needed entity type. Calling this method does not release memory.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)

Properties

  Name Description
Public property ClientCache
Gets the ClientCacheBase to which this client scope is connected.

See Also