Beispiel #1
0
 public ServiceResolver(ServiceResolver root)
 {
     _root         = root;
     _serviceTable = root._serviceTable;
     _resolvedSingletonServices = root._resolvedSingletonServices;
     _serviceCallSiteResolver   = root._serviceCallSiteResolver;
     _resolvedScopedServices    = new ConcurrentDictionary <ServiceDefinition, object>();
     ServiceResolveCallbacks    = this.ResolveMany <IServiceResolveCallback>().ToArray();
 }
Beispiel #2
0
 public ServiceResolver(IServiceContext serviceContext)
 {
     _serviceTable = new ServiceTable(serviceContext.Configuration);
     _serviceTable.Populate(serviceContext);
     _resolvedScopedServices    = new ConcurrentDictionary <ServiceDefinition, object>();
     _resolvedSingletonServices = new ConcurrentDictionary <ServiceDefinition, object>();
     _serviceCallSiteResolver   = new ServiceCallSiteResolver(_serviceTable);
     ServiceResolveCallbacks    = this.ResolveMany <IServiceResolveCallback>().ToArray();
 }
 public ServiceCallSiteResolver(ServiceTable serviceTable)
 {
     _constructorCallSiteResolver = new ConstructorCallSiteResolver(serviceTable);
     _resolvedCallSites           = new ConcurrentDictionary <ServiceDefinition, Func <ServiceResolver, object> >();
 }
 internal ConstructorCallSiteResolver(ServiceTable serviceTable)
 {
     _serviceTable = serviceTable;
 }