示例#1
0
 public FormModePolicy(IChainFilter filter, FormMode mode)
 {
     _filter = filter;
     _mode   = mode;
 }
		public FormModePolicy(IChainFilter filter, FormMode mode)
		{
			_filter = filter;
			_mode = mode;
		}
示例#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);
        }
示例#4
0
 public void ForInputType <T>(FormMode mode)
 {
     ForChainsMatching(new InputTypeIs <T>(), mode);
 }
示例#5
0
 public void ForChainsMatching(IChainFilter filter, FormMode mode)
 {
     addPolicy(new FormModePolicy(filter, mode));
 }
示例#6
0
 public void ForChainsMatching <T>(FormMode mode)
     where T : IChainFilter, new()
 {
     ForChainsMatching(new T(), mode);
 }