Class OpenIddictServerHandler<TContext>
Represents a handler able to process TContext
events.
Inheritance
System.Object
OpenIddictServerHandler<TContext>
Implements
IOpenIddictServerHandler<TContext>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: OpenIddict.Server
Assembly: cs.temp.dll.dll
Syntax
public class OpenIddictServerHandler<TContext> : IOpenIddictServerHandler<TContext> where TContext : OpenIddictValidationEvents.BaseContext
Type Parameters
Name | Description |
---|---|
TContext | The type of the events handled by this instance. |
Constructors
OpenIddictServerHandler(Func<TContext, ValueTask>)
Creates a new event using the specified handler delegate.
Declaration
public OpenIddictServerHandler(Func<TContext, ValueTask> handler)
Parameters
Type | Name | Description |
---|---|---|
System.Func<TContext, System.Threading.Tasks.ValueTask> | handler | The event handler delegate. |
Methods
HandleAsync(TContext)
Processes the event.
Declaration
public ValueTask HandleAsync(TContext context)
Parameters
Type | Name | Description |
---|---|---|
TContext | context | The event to process. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.ValueTask | A System.Threading.Tasks.ValueTask that can be used to monitor the asynchronous operation. |