Table of Contents

Class TeamContext

Namespace
Tharga.Team.Service
Assembly
Tharga.Team.Service.dll

Which team a request is about, and what the caller may do there.

public sealed record TeamContext : IEquatable<TeamContext>
Inheritance
TeamContext
Implements
Inherited Members

Constructors

TeamContext(string, IReadOnlyList<string>, TeamContextRefusal)

Which team a request is about, and what the caller may do there.

public TeamContext(string TeamKey, IReadOnlyList<string> Scopes, TeamContextRefusal Refusal)

Parameters

TeamKey string

The resolved team, or null when the request is not about one.

Scopes IReadOnlyList<string>

Scopes to grant for it, or null when the caller's own claims already carry them.

Refusal TeamContextRefusal

Why it could not be resolved. None on success.

Properties

IsRefused

public bool IsRefused { get; }

Property Value

bool

Refusal

Why it could not be resolved. None on success.

public TeamContextRefusal Refusal { get; init; }

Property Value

TeamContextRefusal

Scopes

Scopes to grant for it, or null when the caller's own claims already carry them.

public IReadOnlyList<string> Scopes { get; init; }

Property Value

IReadOnlyList<string>

TeamKey

The resolved team, or null when the request is not about one.

public string TeamKey { get; init; }

Property Value

string