Table of Contents

Struct ClientCredentialsClientName

Namespace
Fdyay.AccessTokenManagement
Assembly
Fdyay.AccessTokenManagement.dll

The name a registered client-credentials client is looked up by.

public readonly record struct ClientCredentialsClientName : IEquatable<ClientCredentialsClientName>
Implements
Inherited Members

Remarks

A wrapper rather than a bare string because every one of these values is a string, and passing a scope where a client name belongs compiles cleanly and fails at runtime as "no such client".

Properties

Value

The client name, as given to Parse(string).

public string Value { get; }

Property Value

string

Methods

Parse(string)

Wraps a string as a ClientCredentialsClientName.

public static ClientCredentialsClientName Parse(string value)

Parameters

value string

The client name; must not be null, empty or whitespace.

Returns

ClientCredentialsClientName

The wrapped value.

Exceptions

ArgumentException

value is null, empty or whitespace.

ToString()

The wrapped string; the same as Value.

public override string ToString()

Returns

string

Value.