Class ReferenceContext<T>
ReferenceContext<T> holds a reference instance and ensures it is properly de-referenced from its corresponding ReferenceManager<G> when Dispose() is called. This class is primarily intended to be used with a using block.
LUCENENET specific
Inheritance
System.Object
ReferenceContext<T>
Assembly: DistributedLucene.Net.dll
Syntax
public class ReferenceContext<T> : IDisposable where T : class
Type Parameters
Name | Description |
---|---|
T | The reference type |
Properties
Name | Description |
---|---|
Reference | The reference acquired from the ReferenceManager<G>. |
Methods
Name | Description |
---|---|
Dispose() | Ensures the reference is properly de-referenced from its ReferenceManager<G>.
After this call, Reference will be |