Class WebApiConfig
Namespace: Aurigma.DesignAtoms.Configuration
Assembly: Aurigma.DesignAtoms.dll
Syntax
public class WebApiConfig
Inheritance: System.Object -> WebApiConfig
Inherited Members
System.Object.ToStringSystem.Object.Equals(System.Object)System.Object.Equals(System.Object,System.Object)System.Object.ReferenceEquals(System.Object,System.Object)System.Object.GetHashCodeSystem.Object.GetTypeSystem.Object.MemberwiseClone
Constructors
WebApiConfig
public WebApiConfig()
Methods
Register
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 |
CreateJsonSerializerSettings
public static JsonSerializerSettings CreateJsonSerializerSettings(IComponentContext context)
Parameters
| Type | Name | Description |
|---|---|---|
Autofac.IComponentContext | context |
Returns
Newtonsoft.Json.JsonSerializerSettings
ConfigureControllersRouting
public static void ConfigureControllersRouting(HttpConfiguration config)
Parameters
| Type | Name | Description |
|---|---|---|
System.Web.Http.HttpConfiguration | config |
GetConverters
public static JsonConverter[] GetConverters(IConfiguration configuration, IStateResourcesRepository stateResourcesRepository, IRepositoryFileProtector repositoryFileProtector, IImageLoader imageLoader, IFontService fontService, IColorManagement colorManagement, ILifetimeScope scope)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Configuration.IConfiguration | configuration | |
| Aurigma.DesignAtoms.Storage.Repositories.Interfaces.IStateResourcesRepository | stateResourcesRepository | |
| Aurigma.DesignAtoms.Storage.Repositories.Interfaces.Protectors.IRepositoryFileProtector | repositoryFileProtector | |
| Aurigma.DesignAtoms.Canvas.IImageLoader | imageLoader | |
| Aurigma.DesignAtoms.Services.IFontService | fontService | |
| Aurigma.DesignAtoms.ColorManagement.IColorManagement | colorManagement | |
Autofac.ILifetimeScope | scope |
Returns
Newtonsoft.Json.JsonConverter[]