Interface ICommandClaimsBinder
Implementations of this interface lift claims from the a authenticated user and map them
onto the properties of a command
Assembly: FunctionMonkey.Abstractions.dll
Syntax
public interface ICommandClaimsBinder
Methods
|
Improve this Doc
View Source
Bind(ClaimsPrincipal, Object)
Binds the claims in the principal onto properties of the command
Declaration
object Bind(ClaimsPrincipal principal, object command)
Parameters
Type |
Name |
Description |
ClaimsPrincipal |
principal |
|
System.Object |
command |
|
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
BindAsync(ClaimsPrincipal, Object)
Binds the claims in the principal onto properties of the command. If this returns null then
the non-async binder will be called.
Declaration
Task<object> BindAsync(ClaimsPrincipal principal, object command)
Parameters
Type |
Name |
Description |
ClaimsPrincipal |
principal |
|
System.Object |
command |
|
Returns
Type |
Description |
Task<System.Object> |
|
Extension Methods