public ServiceResolver(ServiceResolver root)
 {
     _root         = root;
     _serviceTable = root._serviceTable;
     _resolvedSingletonServcies = root._resolvedSingletonServcies;
     _serviceCallSiteResolver   = root._serviceCallSiteResolver;
     _resolvedScopedServcies    = new ConcurrentDictionary <ServiceDefinition, object>();
 }
 public ServiceResolver(IServiceContainer serviceContainer)
 {
     _serviceTable = new ServiceTable(serviceContainer.Configuration);
     _serviceTable.Populate(serviceContainer);
     _resolvedScopedServcies    = new ConcurrentDictionary <ServiceDefinition, object>();
     _resolvedSingletonServcies = new ConcurrentDictionary <ServiceDefinition, object>();
     _serviceCallSiteResolver   = new ServiceCallSiteResolver(_serviceTable);
 }
Esempio n. 3
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();
 }
Esempio n. 4
0
 public ServiceResolver(IServiceContainer serviceContainer)
 {
     _serviceTable = new ServiceTable(serviceContainer.Configuration);
     _serviceTable.Populate(serviceContainer);
     _resolvedScopedServices    = new ConcurrentDictionary <ServiceDefinition, object>();
     _resolvedSingletonServices = new ConcurrentDictionary <ServiceDefinition, object>();
     _serviceCallSiteResolver   = new ServiceCallSiteResolver(_serviceTable);
     ServiceResolveCallbacks    = this.ResolveMany <IServiceResolveCallback>().ToArray();
 }
Esempio n. 5
0
 internal ConstructorCallSiteResolver(ServiceTable serviceTable)
 {
     _serviceTable = serviceTable;
 }
 public ServiceCallSiteResolver(ServiceTable serviceTable)
 {
     _constructorCallSiteResolver = new ConstructorCallSiteResolver(serviceTable);
     _resolvedCallSites           = new ConcurrentDictionary <ServiceDefinition, Func <ServiceResolver, object> >();
 }