Example #1
0
 public FormModePolicy(IChainFilter filter, FormMode mode)
 {
     _filter = filter;
     _mode   = mode;
 }
		public FormModePolicy(IChainFilter filter, FormMode mode)
		{
			_filter = filter;
			_mode = mode;
		}
Example #3
0
        public void ForInputTypesMatching(Func <Type, bool> filter, FormMode mode)
        {
            var chainFilter = new LambdaChainFilter(chain => chain.InputType() != null && filter(chain.InputType()));

            ForChainsMatching(chainFilter, mode);
        }
Example #4
0
 public void ForInputType <T>(FormMode mode)
 {
     ForChainsMatching(new InputTypeIs <T>(), mode);
 }
Example #5
0
 public void ForChainsMatching(IChainFilter filter, FormMode mode)
 {
     addPolicy(new FormModePolicy(filter, mode));
 }
Example #6
0
 public void ForChainsMatching <T>(FormMode mode)
     where T : IChainFilter, new()
 {
     ForChainsMatching(new T(), mode);
 }