Show / Hide Table of Contents

Interface IHoldsBaggage<TKey>

Manages baggage for the selected keys.

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

The key to use to identify a specific client.

Methods

View Source

GetAllBaggage<TBaggage>()

Gets the baggage of a specified type from all active clients.

Declaration
IEnumerable<KeyValuePair<TKey, TBaggage>> GetAllBaggage<TBaggage>()
Returns
Type Description
IEnumerable<KeyValuePair<TKey, TBaggage>>

An enumeration of keys and associated baggage.

Type Parameters
Name Description
TBaggage

The type of the baggage.

Exceptions
Type Condition
BaggageNullException

Thrown if the registered baggage factory returned null.

MissingBaggageFactoryException

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

View Source

GetBaggage<TBaggage>(TKey)

Gets the baggage associated with a key.

Declaration
TBaggage GetBaggage<TBaggage>(TKey key)
Parameters
Type Name Description
TKey key

The TKey to use to fetch a baggage.

Returns
Type Description
TBaggage

The baggage or null if no connection exists.

Type Parameters
Name Description
TBaggage

The type of the baggage.

Exceptions
Type Condition
BaggageNullException

Thrown if the registered baggage factory returned null.

MissingBaggageFactoryException

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

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