C# Class MDM.ServiceHost.WebApi.Infrastructure.Controllers.DynamicEntityControllerSelector

This is the service entry point controller where it dynamically determines from the request url which MDM entity is being requested and which type of action and then returns the details of the particular controller that should be invoked.
Inheritance: System.Web.Http.Dispatcher.DefaultHttpControllerSelector
Exibir arquivo Open project: RWE-Nexus/EnergyTrading-MDM

Public Methods

Method Description
DynamicEntityControllerSelector ( System.Web.Http.HttpConfiguration configuration ) : System
SelectController ( HttpRequestMessage request ) : HttpControllerDescriptor

Protected Methods

Method Description
DetermineContractType ( string contractName ) : Type
DetermineControllerVieRouteData ( HttpRequestMessage request ) : HttpControllerDescriptor
DetermineEntityType ( string entityName ) : Type
DetermineListContractType ( string contractName ) : Type
DetermineVersionedEntityName ( HttpRequestMessage request, string contractName ) : string
GetControllerTypeForRequest ( HttpRequestMessage request, Type contractType, Type entityType, Type listContractType ) : Type

Method Details

DetermineContractType() protected method

protected DetermineContractType ( string contractName ) : Type
contractName string
return System.Type

DetermineControllerVieRouteData() protected method

protected DetermineControllerVieRouteData ( HttpRequestMessage request ) : HttpControllerDescriptor
request System.Net.Http.HttpRequestMessage
return HttpControllerDescriptor

DetermineEntityType() protected method

protected DetermineEntityType ( string entityName ) : Type
entityName string
return System.Type

DetermineListContractType() protected method

protected DetermineListContractType ( string contractName ) : Type
contractName string
return System.Type

DetermineVersionedEntityName() protected method

protected DetermineVersionedEntityName ( HttpRequestMessage request, string contractName ) : string
request System.Net.Http.HttpRequestMessage
contractName string
return string

DynamicEntityControllerSelector() public method

public DynamicEntityControllerSelector ( System.Web.Http.HttpConfiguration configuration ) : System
configuration System.Web.Http.HttpConfiguration
return System

GetControllerTypeForRequest() protected method

protected GetControllerTypeForRequest ( HttpRequestMessage request, Type contractType, Type entityType, Type listContractType ) : Type
request System.Net.Http.HttpRequestMessage
contractType System.Type
entityType System.Type
listContractType System.Type
return System.Type

SelectController() public method

public SelectController ( HttpRequestMessage request ) : HttpControllerDescriptor
request System.Net.Http.HttpRequestMessage
return HttpControllerDescriptor