|
|
@@ -157,13 +157,15 @@ namespace Inversion {
|
|
|
break;
|
|
|
|
|
|
case Lifecycle.SCOPED:
|
|
|
- case Lifecycle.TRANSIENT:
|
|
|
- default:
|
|
|
if (!this.scoped_instances.try_get(registration, out result)) {
|
|
|
result = create_with_injection_context(this, requested_type, registration);
|
|
|
this.scoped_instances.set(registration, result);
|
|
|
}
|
|
|
break;
|
|
|
+ case Lifecycle.TRANSIENT:
|
|
|
+ default:
|
|
|
+ result = create_with_injection_context(this, requested_type, registration);
|
|
|
+ break;
|
|
|
}
|
|
|
|
|
|
if(!result.get_type().is_a(requested_type)) {
|