Method Dispose
Dispose()
Closes this ReferenceManager to prevent future Acquire()ing. A reference manager should be disposed if the reference to the managed resource should be disposed or the application using the ReferenceManager<G> is shutting down. The managed resource might not be released immediately, if the ReferenceManager<G> user is holding on to a previously Acquire()d reference. The resource will be released once when the last reference is Release(G)d. Those references can still be used as if the manager was still active.
Applications should not Acquire() new references from this
manager once this method has been called. Acquire()ing a
resource on a disposed ReferenceManager<G> will throw an
Declaration
public void Dispose()
Dispose(Boolean)
Called after Dispose(), so subclass can free any resources.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |