Ejemplo n.º 1
0
        protected override IConfiguredInstance buildInstance()
        {
            var instance = new SmartInstance <AuthorizationBehavior>();

            instance.Ctor <IAuthorizationNode>().Is(this);

            if (_failure != null)
            {
                instance.Ctor <IAuthorizationFailureHandler>().Is(_failure);
            }

            return(instance);
        }
Ejemplo n.º 2
0
        protected override IConfiguredInstance buildInstance()
        {
            var instance = new SmartInstance<BehaviorTracer>();
            instance.Ctor<BehaviorNode>().Is(Next);

            return instance;
        }
Ejemplo n.º 3
0
        protected override IConfiguredInstance buildInstance()
        {
            var instance = new SmartInstance<AntiForgeryBehavior>();
            instance.Ctor<string>().Is(_salt);

            return instance;
        }
Ejemplo n.º 4
0
        protected override IConfiguredInstance buildInstance()
        {
            var instance = new SmartInstance<ExceptionHandlerBehavior>();
            instance.Ctor<HandlerChain>().Is(_chain);

            return instance;
        }
Ejemplo n.º 5
0
        protected override IConfiguredInstance buildInstance()
        {
            var instance = new SmartInstance <ExceptionHandlerBehavior>();

            instance.Ctor <HandlerChain>().Is(_chain);

            return(instance);
        }
Ejemplo n.º 6
0
        protected override IConfiguredInstance buildInstance()
        {
            var instance = new SmartInstance <BehaviorTracer>();

            instance.Ctor <BehaviorNode>().Is(Next);

            return(instance);
        }
Ejemplo n.º 7
0
        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>();
 }
Ejemplo n.º 9
0
 public void InjectInstance <T>(T instance)
 {
     use.Ctor <T>().Is(o => instance);
 }