private void ThrowMissingInstanceProducerException(Type serviceType) { if (Types.IsConcreteConstructableType(serviceType)) { this.ThrowNotConstructableException(serviceType); } throw new ActivationException(StringResources.NoRegistrationForTypeFound( serviceType, this.HasRegistrations, this.ContainsOneToOneRegistrationForCollectionType(serviceType), this.ContainsCollectionRegistrationFor(serviceType), this.GetNonGenericDecoratorsThatWereSkippedDuringBatchRegistration(serviceType), this.GetLookalikesForMissingType(serviceType))); }
private void ThrowMissingInstanceProducerException(Type type) { if (Types.IsConcreteConstructableType(type)) { this.ThrowNotConstructableException(type); } throw new ActivationException(StringResources.NoRegistrationForTypeFound( type, containerHasRegistrations: this.HasRegistrations, containerHasRelatedOneToOneMapping: this.ContainsOneToOneRegistrationForCollection(type), collectionRegistrationDoesNotExists: this.IsCollectionButNoOneToToOneRegistrationExists(type), containerHasRelatedCollectionMapping: this.ContainsCollectionRegistrationFor(type), skippedDecorators: this.GetNonGenericDecoratorsSkippedDuringAutoRegistration(type), lookalikes: this.GetLookalikesForMissingType(type))); }