Interface IClaimsMappingBuilder
Namespace: AzureFromTheTrenches.Commanding.AspNetCore
Assembly: AzureFromTheTrenches.Commanding.AspNetCore.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.String | claimType | The claim type |
| System.Linq.Expressions.Expression<System.Func<TCommand, System.Object>> | getProperty | The property of the command to map to |
Returns
| Type | Description |
|---|---|
| IClaimsMappingBuilder |
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.String | claimType | |
| System.String | propertyName |
Returns
| Type | Description |
|---|---|
| IClaimsMappingBuilder |