Ejemplo n.º 1
0
 public ServiceResolver(ServiceResolver root)
 {
     _root         = root;
     _serviceTable = root._serviceTable;
     _resolvedSingletonServcies = root._resolvedSingletonServcies;
     _serviceCallSiteResolver   = root._serviceCallSiteResolver;
     _resolvedScopedServcies    = new ConcurrentDictionary <ServiceDefinition, object>();
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo 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();
 }
Ejemplo 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();
 }