C# Класс NServiceMVC.NServiceMVC.NsConfiguration

NServiceMVC configuration
Показать файл Открыть проект

Открытые методы

Метод Описание
Metadata ( string baseUrl = "metadata" ) : void

Set the location where metadata is served from

NsConfiguration ( ) : System

Creates a new instance of configuration. ApplicationTitle is not set.

NsConfiguration ( Assembly callingAssembly ) : System

Creates a new instance of configuration. ApplicationTitle is set to the calling assembly name

RegisterControllerAssembly ( Assembly assembly ) : void

Register an assembly as containing controller methods to be included in metadata output. Controllers must be inherited from IServiceController.

RegisterModelAssembly ( Assembly assembly ) : void

Registers all types in the givven assembly as models

RegisterModelAssembly ( Assembly assembly, string @namespace ) : void

Reegisters all types in the given assembly with the specified namespace as models to be included in metadata output. This method can be called multiple times to register different namespaces within the same assembly.

Описание методов

Metadata() публичный Метод

Set the location where metadata is served from
public Metadata ( string baseUrl = "metadata" ) : void
baseUrl string
Результат void

NsConfiguration() публичный Метод

Creates a new instance of configuration. ApplicationTitle is not set.
public NsConfiguration ( ) : System
Результат System

NsConfiguration() публичный Метод

Creates a new instance of configuration. ApplicationTitle is set to the calling assembly name
public NsConfiguration ( Assembly callingAssembly ) : System
callingAssembly System.Reflection.Assembly
Результат System

RegisterControllerAssembly() публичный Метод

Register an assembly as containing controller methods to be included in metadata output. Controllers must be inherited from IServiceController.
public RegisterControllerAssembly ( Assembly assembly ) : void
assembly System.Reflection.Assembly
Результат void

RegisterModelAssembly() публичный Метод

Registers all types in the givven assembly as models
public RegisterModelAssembly ( Assembly assembly ) : void
assembly System.Reflection.Assembly
Результат void

RegisterModelAssembly() публичный Метод

Reegisters all types in the given assembly with the specified namespace as models to be included in metadata output. This method can be called multiple times to register different namespaces within the same assembly.
public RegisterModelAssembly ( Assembly assembly, string @namespace ) : void
assembly System.Reflection.Assembly
@namespace string
Результат void