protected override IConfiguredInstance buildInstance() { var instance = new SmartInstance <AuthorizationBehavior>(); instance.Ctor <IAuthorizationNode>().Is(this); if (_failure != null) { instance.Ctor <IAuthorizationFailureHandler>().Is(_failure); } return(instance); }
protected override IConfiguredInstance buildInstance() { var instance = new SmartInstance<BehaviorTracer>(); instance.Ctor<BehaviorNode>().Is(Next); return instance; }
protected override IConfiguredInstance buildInstance() { var instance = new SmartInstance<AntiForgeryBehavior>(); instance.Ctor<string>().Is(_salt); return instance; }
protected override IConfiguredInstance buildInstance() { var instance = new SmartInstance<ExceptionHandlerBehavior>(); instance.Ctor<HandlerChain>().Is(_chain); return instance; }
protected override IConfiguredInstance buildInstance() { var instance = new SmartInstance <ExceptionHandlerBehavior>(); instance.Ctor <HandlerChain>().Is(_chain); return(instance); }
protected override IConfiguredInstance buildInstance() { var instance = new SmartInstance <BehaviorTracer>(); instance.Ctor <BehaviorNode>().Is(Next); return(instance); }
protected override IConfiguredInstance buildInstance() { var instance = new SmartInstance <AntiForgeryBehavior>(); instance.Ctor <string>().Is(_salt); return(instance); }
public StructureMapConstructorArgumentMapping(IMapping <TInterface, TImplementation> mapping, SmartInstance <TImplementation> argMapping) { _mapping = mapping; _argMapping = argMapping.Ctor <TArg>(); }
public void InjectInstance <T>(T instance) { use.Ctor <T>().Is(o => instance); }