internal Func <ServiceResolver, object> Resolve(ServiceDefinition service)
 {
     return(_resolvedCallSites.GetOrAdd(service, ResolvePropertyInject));
 }
 public void Add(ServiceDefinition item) => _collection.Add(item);
 internal static bool RequiredResolveCallback(this ServiceDefinition serviceDefinition)
 {
     return(_callbackMap.GetOrAdd(serviceDefinition, service => !service.ServiceType.GetReflector().IsDefined <NonCallback>()));
 }