C# Class NServiceMVC.NServiceMVC.NsConfiguration

NServiceMVC configuration
Afficher le fichier Open project: gregmac/NServiceMVC

Méthodes publiques

Méthode 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 méthode

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

NsConfiguration() public méthode

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

NsConfiguration() public méthode

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

RegisterControllerAssembly() public méthode

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
Résultat void

RegisterModelAssembly() public méthode

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

RegisterModelAssembly() public méthode

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
Résultat void