Heading to the Printing United trade show? Schedule a meeting with our representatives.

Setup Method

Configures the Web API.

Namespace: Aurigma.DesignAtoms.Configuration
Assembly: Aurigma.DesignAtoms (in Aurigma.DesignAtoms.dll)

Syntax

C#
public static void Setup(
	bool enableCors,
	IEnumerable<Assembly> controllerAssemblies,
	TypeRegistrationOrderedDict additionalBindings
)

Parameters

enableCors

Type: System.Boolean

If true, enables cross-origin requests. By default, cross-origin requests are disabled.
controllerAssemblies

Type: System.Collections.Generic.IEnumerable<Assembly>

The collection of assemblies containing Web API controllers. This parameter is null by default.
additionalBindings

Type: TypeRegistrationOrderedDict

Additional parameters for Dependency Injection. This parameter is null by default.

See Also

Reference