Show / Hide Table of Contents

Interface ISharedRef<TValue>

A shared reference to a value.

Namespace: Microsoft.XboxStudios.ClientManager
Assembly: ClientManager.Abstractions.dll
Syntax
public interface ISharedRef<TValue>
Type Parameters
Name Description
TValue

The type of the value to have a shared reference to.

Properties

View Source

Value

Gets the value this shared pointer is pointing to.

Declaration
TValue Value { get; }
Property Value
Type Description
TValue

Methods

View Source

Unreserve()

Decrements the reference count and cleans up the shared value synchronously if the count reaches zero.

Declaration
void Unreserve()
View Source

UnreserveAsync()

Decrements the reference count and cleans up the shared value asynchronously if the count reaches zero.

Declaration
ValueTask UnreserveAsync()
Returns
Type Description
ValueTask

A ValueTask that represents the asynchronous operation.

  • View Source
In this article
Back to top Generated by DocFX