Class ReferenceCountedOwner<T>
Represents owner part of the resource which lifetime is managed by the reference counter in thread-safe manner.
Implements
Inherited Members
Namespace: DotNext.Threading
Assembly: DotNext.dll
Syntax
public sealed class ReferenceCountedOwner<T> : ReferenceCounted<T>, IDisposable where T : IDisposable
Type Parameters
| Name | Description |
|---|---|
| T | The type of the resource. |
Constructors
View SourceReferenceCountedOwner(T)
Represents owner part of the resource which lifetime is managed by the reference counter in thread-safe manner.
Declaration
public ReferenceCountedOwner(T resource)
Parameters
| Type | Name | Description |
|---|---|---|
| T | resource | The resource to be protected by the reference counting. |
Methods
View SourceDispose()
Releases the ownership of the resource.
Declaration
public void Dispose()