public MultipleValueActivator(ITypeResolutionPolicy innerResolver, Type typeToResolve)
 {
     this.innerResolver = innerResolver;
     this.typeToResolve = typeToResolve;
     typedListCreator   = ActivationCompiler.Compile(typeof(List <>).MakeGenericType(typeToResolve),
                                                     Array.Empty <Type>());
 }
示例#2
0
 public void AddTypeResolutionPolicyBefore <T>(ITypeResolutionPolicy policy) =>
 TypeResolver.AddResolutionPolicyBefore <T>(policy);
示例#3
0
 public void AddTypeResolutionPolicyAfter <T>(ITypeResolutionPolicy policy) =>
 TypeResolver.AddResolutionPolicyAfter <T>(policy);
示例#4
0
 public EnumerateMultipleBindingsPolicy(ITypeResolutionPolicy innerPolicy)
 {
     this.innerPolicy = innerPolicy;
 }
示例#5
0
 public MemorizeResult(CachedResolutionPolicy cache, ITypeResolutionPolicy innerPolicy)
 {
     this.cache  = cache;
     InnerPolicy = innerPolicy;
 }
 public void SetBackupCache(ITypeResolutionPolicy policy) => backupCache = policy;