Class DefaultUserCodeService
- Namespace
- Fdyay.IdentityServer.Services
- Assembly
- Fdyay.IdentityServer.Core.dll
Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
public sealed class DefaultUserCodeService : IUserCodeService
- Inheritance
-
DefaultUserCodeService
- Implements
- Inherited Members
Remarks
Ordinal, and the last registration of a type wins where Duende takes the first: this server registers its own
generators inside AddIdentityServer, so a host replacing one registers after it, and first-wins would
leave the replacement unreachable.
Constructors
DefaultUserCodeService(IEnumerable<IUserCodeGenerator>)
A service choosing among generators.
public DefaultUserCodeService(IEnumerable<IUserCodeGenerator> generators)
Parameters
generatorsIEnumerable<IUserCodeGenerator>The registered generators.
Methods
GetGenerator(string, CancellationToken)
The generator registered for userCodeType, or null when none is.
public Task<IUserCodeGenerator?> GetGenerator(string userCodeType, CancellationToken cancellationToken = default)
Parameters
userCodeTypestringcancellationTokenCancellationToken