Maps the interface to a concrete type
Namespace:
Crosser.Resolve
Assembly:
Crosser.Resolver (in Crosser.Resolver.dll) Version: 0.0.9.1
Syntax public static bool As(
Func<TInterface> creator,
bool rewritable = false,
bool enabled = true,
IDictionary<string, Object> properties = null
)
Parameters
- creator
- Type: SystemFuncTInterface
The func that creates the concrete type - rewritable (Optional)
- Type: SystemBoolean
Pass in true to be able to change the mapping later - enabled (Optional)
- Type: SystemBoolean
If false the mapping is disabled and the instance will not be created - properties (Optional)
- Type: System.Collections.GenericIDictionaryString, Object
Lets you set custom properties as metadata for a mapping signature
Return Value
Type:
BooleanSee Also