Class WebApiConfig
Inheritance
System.Object
WebApiConfig
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Aurigma.DesignAtoms.Configuration
Assembly: Aurigma.DesignAtoms.dll
Syntax
public class WebApiConfig
Constructors
WebApiConfig()
Declaration
public WebApiConfig()
Methods
ConfigureControllersRouting(HttpConfiguration)
Declaration
public static void ConfigureControllersRouting(HttpConfiguration config)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Web.Http.HttpConfiguration | config |
CreateJsonSerializerSettings(IComponentContext)
Declaration
public static JsonSerializerSettings CreateJsonSerializerSettings(IComponentContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| Autofac.IComponentContext | context |
Returns
| Type | Description |
|---|---|
| Newtonsoft.Json.JsonSerializerSettings |
GetConverters(IConfiguration, IFileCache, IImageLoader, IFontService, IColorManagement, ILifetimeScope)
Declaration
public static JsonConverter[] GetConverters(IConfiguration configuration, IFileCache fileCache, IImageLoader imageLoader, IFontService fontService, IColorManagement colorManagement, ILifetimeScope scope)
Parameters
| Type | Name | Description |
|---|---|---|
| IConfiguration | configuration | |
| IFileCache | fileCache | |
| IImageLoader | imageLoader | |
| IFontService | fontService | |
| IColorManagement | colorManagement | |
| Autofac.ILifetimeScope | scope |
Returns
| Type | Description |
|---|---|
| Newtonsoft.Json.JsonConverter[] |
Register(HttpConfiguration, IContainer, Boolean)
Declaration
public static void Register(HttpConfiguration config, IContainer injector, bool enableMappingAttributeRoutes = true)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Web.Http.HttpConfiguration | config | |
| Autofac.IContainer | injector | |
| System.Boolean | enableMappingAttributeRoutes |