C# Class NServiceMVC.NServiceMVC.NsConfiguration

NServiceMVC configuration
Mostra file Open project: gregmac/NServiceMVC

Public Methods

Method Description
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.

Method Details

Metadata() public method

Set the location where metadata is served from
public Metadata ( string baseUrl = "metadata" ) : void
baseUrl string
return void

NsConfiguration() public method

Creates a new instance of configuration. ApplicationTitle is not set.
public NsConfiguration ( ) : System
return System

NsConfiguration() public method

Creates a new instance of configuration. ApplicationTitle is set to the calling assembly name
public NsConfiguration ( Assembly callingAssembly ) : System
callingAssembly System.Reflection.Assembly
return System

RegisterControllerAssembly() public method

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
return void

RegisterModelAssembly() public method

Registers all types in the givven assembly as models
public RegisterModelAssembly ( Assembly assembly ) : void
assembly System.Reflection.Assembly
return void

RegisterModelAssembly() public method

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
return void