Show / Hide Table of Contents

Interface IConnectionScope<TKey>

Auto reserves clients and manages their lifetimes.

Inherited Members
ICanConnect<TKey>.ConnectAsync(TKey, CancellationOptions?)
ICanConnect<TKey>.ConnectAsync(IEnumerable<TKey>, CancellationOptions?)
IHoldsBaggage<TKey>.GetBaggage<TBaggage>(TKey)
IHoldsBaggage<TKey>.GetAllBaggage<TBaggage>()
IAsyncDisposable.DisposeAsync()
IDisposable.Dispose()
Namespace: Microsoft.XboxStudios.ClientManager
Assembly: ClientManager.Abstractions.dll
Syntax
public interface IConnectionScope<TKey> : ICanConnect<TKey>, IHoldsBaggage<TKey>, IAsyncDisposable, IDisposable where TKey : notnull
Type Parameters
Name Description
TKey

The type of key to use.

Methods

View Source

ConnectAndGetBaggageAsync<TBaggage>(TKey, CancellationOptions?)

Connects if necessary and gets the baggage associated with a key.

Declaration
ValueTask<TBaggage> ConnectAndGetBaggageAsync<TBaggage>(TKey key, CancellationOptions? co = null)
Parameters
Type Name Description
TKey key

The TKey to use to fetch a baggage.

CancellationOptions? co

The Microsoft.XboxStudios.Bifrost.CancellationOptions.

Returns
Type Description
ValueTask<TBaggage>

The baggage if possible.

Type Parameters
Name Description
TBaggage

The type of the baggage.

Exceptions
Type Condition
BaggageNullException

Thrown if the registered baggage factory returned null.

ConnectionFailedException

Thrown if the connection could not be established.

MissingBaggageFactoryException

Thrown if the baggage factory of the requested baggage is not registered.

View Source

RemoveConnection(TKey)

Removes the connection associated with the key if active.

Declaration
void RemoveConnection(TKey key)
Parameters
Type Name Description
TKey key

The key to remove the state for.

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