C# Class Swagger.Net.ResourceModels.Configuration.ResourcesConfiguration

Resposinble to load and initialize all ResourceConfiguration.
Mostra file Open project: giacomelli/DG-Swagger.Net

Public Methods

Method Description
Initialize ( ) : void

Initializes with the specified configurations.

Initialize ( Assembly configurationsAssembly ) : void

Initializes all ResourceConfiguration from the specified assembly.

Private Methods

Method Description
GetOperationConfiguration ( System.Web.Http.Description.ApiDescription apiDescription, bool>.Func where = null ) : OperationConfiguration
GetResourceConfiguration ( HttpControllerDescriptor controllerDescriptor ) : IResourceConfiguration

Gets the controller configuration.

IsErrorMessageMapped ( System.Web.Http.Description.ApiDescription apiDescription, ResourceApiOperationParameterErrorResponse errorResponse ) : bool

Determines whether the error response (ErrorResponseConfiguration) can be shown.

IsOperationMapped ( System.Web.Http.Description.ApiDescription apiDescription ) : bool

Determines whether the ApiDescription (OperationConfiguration) can be shown.

IsResourceMapped ( HttpControllerDescriptor controllerDescriptor ) : bool

Determines whether the controller (ResourceConfiguration) can be shown.

Method Details

Initialize() public static method

Initializes with the specified configurations.
public static Initialize ( ) : void
return void

Initialize() public static method

Initializes all ResourceConfiguration from the specified assembly.
public static Initialize ( Assembly configurationsAssembly ) : void
configurationsAssembly System.Reflection.Assembly The configurations assembly.
return void