예제 #1
0
        public override void Alter(ActionCallBase call)
        {
            if (call is ActionCall)
            {
                var chain = call.ParentChain();
                var alias = call.As <ActionCall>().BuildRouteForPattern(_pattern);

                chain.As <RoutedChain>().AddRouteAlias(alias);
            }
        }
예제 #2
0
        public override void Alter(ActionCallBase call)
        {
            if (call is ActionCall)
            {
                var chain = call.ParentChain();
                var alias = call.As<ActionCall>().BuildRouteForPattern(_pattern);

                chain.As<RoutedChain>().AddRouteAlias(alias);
            }
        }
예제 #3
0
 public override void Alter(ActionCallBase call)
 {
     call.ParentChain().As <RoutedChain>().UrlCategory.Creates.Add(Type);
 }
예제 #4
0
 public override void Alter(ActionCallBase call)
 {
     var authorizationNode = call.ParentChain().Authorization;
     _roles.Each(r => authorizationNode.AddRole(r));
 }
예제 #5
0
 public override void Alter(ActionCallBase call)
 {
     call.ParentChain().Input.Add(typeof(NewtonSoftBindingReader<>));
 }
	    public override void Alter(ActionCallBase call)
	    {
	        var chain = call.ParentChain();

            chain.Prepend(ActionFilter.For<PassThroughAuthenticationFilter>(a => a.Filter()));
	    }
예제 #7
0
 public override void Alter(ActionCallBase call)
 {
     call.ParentChain().Authorization.AddPolicy(new MustBeAuthenticated());
 }
예제 #8
0
        public override void Alter(ActionCallBase call)
        {
            var chain = call.ParentChain();

            _roles.Each(role => chain.Authorization.AddPolicy(new RequireRole(role)));
        }
예제 #9
0
        public override void Alter(ActionCallBase call)
        {
            var inputNode = call.ParentChain().Input;

            _types.Each(inputNode.Add);
        }
예제 #10
0
        public override void Alter(ActionCallBase call)
        {
            var authorizationNode = call.ParentChain().Authorization;

            _roles.Each(r => authorizationNode.AddRole(r));
        }
예제 #11
0
 public override void Alter(ActionCallBase call)
 {
     var chain = call.ParentChain();
     chain.Tags.Fill(_tags);
 }
예제 #12
0
        public override void Alter(ActionCallBase call)
        {
            var authorizationNode = call.ParentChain().Authorization;

            Types.Each(authorizationNode.Add);
        }
예제 #13
0
 public override void Alter(ActionCallBase call)
 {
     call.ParentChain().Authorization.FailureHandler(_type);
 }
예제 #14
0
 public override void Alter(ActionCallBase call)
 {
     call.ParentChain().As<RoutedChain>().UrlCategory.Creates.Add(Type);
 }
예제 #15
0
 public override void Alter(ActionCallBase call)
 {
     call.ParentChain().Authorization.AddPolicy(new MustBeAuthenticated());
 }
예제 #16
0
        public override void Alter(ActionCallBase call)
        {
            var outputNode = call.ParentChain().Output;

            _types.Each(t => outputNode.Add(t));
        }
예제 #17
0
 public override void Alter(ActionCallBase call)
 {
     call.ParentChain().Authorization.FailureHandler(_type);
 }
예제 #18
0
        public override void Alter(ActionCallBase call)
        {
            var chain = call.ParentChain();

            chain.Prepend(ActionFilter.For <PassThroughAuthenticationFilter>(a => a.Filter()));
        }
예제 #19
0
        public override void Alter(ActionCallBase call)
        {
            var authorizationNode = call.ParentChain().Authorization;

            Types.Each(authorizationNode.Add);
        }
예제 #20
0
 public override void Alter(ActionCallBase call)
 {
     call.ParentChain().InsertFirst(Wrapper.For <WonkyWrapper>());
 }
예제 #21
0
 public override void Alter(ActionCallBase call)
 {
     var chain = call.ParentChain();
     _roles.Each(role => chain.Authorization.AddPolicy(new RequireRole(role)));
 }
 public override void Alter(ActionCallBase call)
 {
     call.ParentChain().As <RoutedChain>().UrlCategory.Category = Category;
 }
예제 #23
0
 public override void Alter(ActionCallBase call)
 {
     call.ParentChain().Input.Add(typeof(NewtonSoftBindingReader <>));
 }
예제 #24
0
        public override void Alter(ActionCallBase call)
        {
            var chain = call.ParentChain();

            chain.Tags.Fill(_tags);
        }
 public override void Alter(ActionCallBase call)
 {
     call.ParentChain().As<RoutedChain>().UrlCategory.Category = Category;
 }