예제 #1
0
 private InstanceSourcesScope(InstanceSourcesScope containerScope, Dictionary <ITypeSymbol, DelegateParameter> delegateParameters, int depth)
 {
     _instanceSources = containerScope._instanceSources;
     _genericRegistrationsResolver = containerScope._genericRegistrationsResolver;
     _decoratorSources             = containerScope._decoratorSources;
     _genericDecoratorsResolver    = containerScope._genericDecoratorsResolver;
     _wellKnownTypes     = containerScope._wellKnownTypes;
     _containerScope     = containerScope;
     _delegateParameters = delegateParameters;
     Depth = depth;
 }
예제 #2
0
 public InstanceSourcesScope(
     IReadOnlyDictionary <ITypeSymbol, InstanceSources> instanceSources,
     GenericRegistrationsResolver genericRegistrationsResolver,
     IReadOnlyDictionary <ITypeSymbol, ImmutableArray <DecoratorSource> > decoratorSources,
     GenericDecoratorsResolver genericDecoratorsResolver,
     WellKnownTypes wellKnownTypes)
 {
     _instanceSources = instanceSources;
     _genericRegistrationsResolver = genericRegistrationsResolver;
     _decoratorSources             = decoratorSources;
     _genericDecoratorsResolver    = genericDecoratorsResolver;
     _wellKnownTypes = wellKnownTypes;
     _containerScope = this;
     Depth           = 0;
 }