Show / Hide Table of Contents

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 Source

MapClaimToCommandProperty<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

Expression<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

| Improve this Doc View Source

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

Extension Methods

OpenApiFluentValidationHelper.IsNumeric(Object)
OpenApiFluentValidationHelper.NumericToInt(Object)
OpenApiFluentValidationHelper.NumericToDouble(Object)
OpenApiFluentValidationHelper.NumericToDecimal(Object)
  • Improve this Doc
  • View Source
  • 0 Comments
Back to top Copyright © 2018 James Randall