Пример #1
0
 public InnerRegistration1(TokenStore store, IDependency <T1> dependency, IFilterToken groupToken, int priority)
 {
     this.store      = store;
     this.dependency = dependency;
     this.groupToken = groupToken;
     this.priority   = priority;
 }
 public InnerHighLevelRegistration(TokenStore store, IFilterToken groupToken, int priority, params IDependency[] dependencies)
 {
     this.store        = store;
     this.groupToken   = groupToken;
     this.priority     = priority;
     this.dependencies = dependencies;
 }
Пример #3
0
        public static IRegister GetRegistration(TokenStore store, IFilterToken groupToken, int priority)
        {
            var inner          = new InnerRegistration(store, groupToken, priority);
            var innerHighLevel = new InnerHighLevelRegistration(store, groupToken, priority);

            return(new Registration(store, inner, innerHighLevel));
        }
Пример #4
0
 public Declarator(TokenStore store, IToken <T> token, IProvider provider, IFilterToken groupToken, int priority)
 {
     this.store      = store;
     this.token      = token;
     this.provider   = provider;
     this.groupToken = groupToken;
     this.priority   = priority;
 }
Пример #5
0
 public FilterInfo(int id, IDiagInfo diagInfo    = null,
                   IFilterToken parentGroupToken = null,
                   int priority = TestingContext.DefaultPriority)
 {
     FilterToken      = new FilterToken();
     ParentGroupToken = parentGroupToken;
     Priority         = priority;
     DiagInfo         = diagInfo;
     Id = id;
 }
Пример #6
0
 public FilterInfo(int id, IDiagInfo diagInfo = null,
     IFilterToken parentGroupToken = null,
     int priority = TestingContext.DefaultPriority)
 {
     FilterToken = new FilterToken();
     ParentGroupToken = parentGroupToken;
     Priority = priority;
     DiagInfo = diagInfo;
     Id = id;
 }
Пример #7
0
        public static IFor <T1> GetRegistration1 <T1>(TokenStore store,
                                                      IDependency <T1> dependency,
                                                      IFilterToken groupToken,
                                                      int priority)
        {
            var inner          = new InnerRegistration1 <T1>(store, dependency, groupToken, priority);
            var innerHighLevel = new InnerHighLevelRegistration(store, groupToken, priority, dependency);

            return(new Registration1 <T1>(store, inner, innerHighLevel));
        }
Пример #8
0
 public InnerRegistration2(TokenStore store,
                           IDependency <T1> dependency1,
                           IDependency <T2> dependency2,
                           IFilterToken groupToken,
                           int priority)
 {
     this.store       = store;
     this.dependency1 = dependency1;
     this.dependency2 = dependency2;
     this.groupToken  = groupToken;
     this.priority    = priority;
 }
Пример #9
0
 public Provider(IDependency <TSource> dependency,
                 Func <TSource, IEnumerable <T> > sourceFunc,
                 TokenStore store,
                 IFilterToken parentGroupToken,
                 IDiagInfo diagInfo)
 {
     ParentGroupToken = parentGroupToken;
     DiagInfo         = diagInfo;
     this.dependency  = dependency;
     this.sourceFunc  = sourceFunc;
     this.store       = store;
     Dependencies     = new IDependency[] { dependency };
 }
Пример #10
0
 public Provider2(IDependency <TSource1> dependency1,
                  IDependency <TSource2> dependency2,
                  Func <TSource1, TSource2, IEnumerable <T> > sourceFunc,
                  TokenStore store,
                  IFilterToken parentGroupToken,
                  IDiagInfo diagInfo)
 {
     ParentGroupToken = parentGroupToken;
     DiagInfo         = diagInfo;
     this.dependency1 = dependency1;
     this.dependency2 = dependency2;
     this.sourceFunc  = sourceFunc;
     this.store       = store;
     Dependencies     = new IDependency[] { dependency1, dependency2 };
 }
Пример #11
0
 public QueryFilter(IFilterToken filter)
     : this()
 {
     this._filters.Add(filter);
 }
Пример #12
0
 public QueryFilter Add(IFilterToken c)
 {
     this._filters.Add(c);
     return(this);
 }
Пример #13
0
 public void InvertFilter(IFilterToken token, string file, int line, string member)
 => store.FilterInversions.Add(token, DiagInfo.Create(file, line, member));
Пример #14
0
 public InnerRegistration(TokenStore store, IFilterToken groupToken, int priority)
 {
     this.store      = store;
     this.groupToken = groupToken;
     this.priority   = priority;
 }
Пример #15
0
 public static void RegisterCvFilter(this TokenStore store, FilterRegistration filter, IFilterToken token)
 {
     store.RegisterFilter(filter);
     store.CvFilters.Add(token);
 }