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
Methods
Parse(string)
Wraps a string as a ClientCredentialsClientName.
public static ClientCredentialsClientName Parse(string value)
Parameters
valuestringThe client name; must not be null, empty or whitespace.
Returns
- ClientCredentialsClientName
The wrapped value.
Exceptions
- ArgumentException
valueis null, empty or whitespace.
ToString()
The wrapped string; the same as Value.
public override string ToString()