Interface IClaimsMappingBuilder
Provides an interface that allows claims to be mapped to commands
Namespace: FunctionMonkey.Abstractions.Builders
Assembly: FunctionMonkey.Abstractions.dll
Syntax
public interface IClaimsMappingBuilder
Methods
| Improve this Doc View SourceMapClaimToCommandProperty<TCommand>(String, Expression<Func<TCommand, Object>>)
Maps a claim to a property on a specific command type. These mappings will take precedence over the geneic claim name to property name mappings
Declaration
IClaimsMappingBuilder MapClaimToCommandProperty<TCommand>(string claimType, Expression<Func<TCommand, object>> getProperty)
Parameters
Type | Name | Description |
---|---|---|
System. |
claimType | The claim type |
Expression<Func<TCommand, System. |
getProperty | The property of the command to map to |
Returns
Type | Description |
---|---|
IClaims |
Type Parameters
Name | Description |
---|---|
TCommand | The type of command |
MapClaimToPropertyName(String, String)
Will map a claim of the given type to any property with the name propertyName. This is useful if you take a consistent approach to naming for example
Declaration
IClaimsMappingBuilder MapClaimToPropertyName(string claimType, string propertyName)
Parameters
Type | Name | Description |
---|---|---|
System. |
claimType | |
System. |
propertyName |
Returns
Type | Description |
---|---|
IClaims |