Show / Hide Table of Contents

Class ReferenceCountedOwner<T>

Represents owner part of the resource which lifetime is managed by the reference counter in thread-safe manner.

Inheritance
object
ReferenceCounted<T>
ReferenceCountedOwner<T>
Implements
IDisposable
Inherited Members
ReferenceCounted<T>.Acquire()
object.GetType()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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 Source

ReferenceCountedOwner(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 Source

Dispose()

Releases the ownership of the resource.

Declaration
public void Dispose()

Implements

IDisposable

Extension Methods

BasicExtensions.As<T>(T)
BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, params ReadOnlySpan<T>)
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾