Interface IResourceReference<T>
- Namespace
- Acuit.Pinpoint.ResourceManagement
- Assembly
- Acuit.Pinpoint.ResourceManagement.Abstractions.dll
A strongly-typed resource reference.
public interface IResourceReference<T> : IResourceReference, IDisposable
Type Parameters
T
The resource value type.
- Inherited Members
- Extension Methods
Methods
GetValueAsync(CancellationToken)
Gets the resource value.
Task<T> GetValueAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenA cancellation token that can be used to request canceling retrieving the resource.
Returns
- Task<T>
A task that represents the asynchronous operation. The value of its Result property contains the resource value.
Remarks
See the remarks for GetValueAsync(CancellationToken) for more information.
Exceptions
- ObjectDisposedException
The object has been disposed.
- Exception
The resource could not be retrieved.