ipjohnson / Grace

Grace is a feature rich dependency injection container library
MIT License
336 stars 33 forks source link

[Bug] Behavior 'AllowInjectionScopeLocation' doesn't make 'IInjectionScope' locatable thru Locate<IInjectionScope> #172

Closed mcdis closed 6 years ago

mcdis commented 6 years ago
Container = new DependencyInjectionContainer(_ =>
{
  _.Behaviors.AllowInjectionScopeLocation = true;
});
Container.Locate<IInjectionScope>(); <--- Fail
ipjohnson commented 6 years ago

I believe I know why it’s not returning itself. I’ll look to make this change in the coming days and release a beta with the other issue you raised

ipjohnson commented 6 years ago

I've released 6.4.0-RC685 with this fix