Make GetCurrentScope available on IContainer via extension method

Issue #255 resolved
Maksim Volkau
repo owner created an issue

Currenty to get the current open scope from container I need to either cast IContainer to IScopeAccess, or use smelly chain:

container.ContainerWeakRef.Scopes.GetCurrentScope().

Until the v3.0.0 where I can extend IContainer interface, I can create extension method to GetCurrentScope hiding all this leaky stuff inside.

Comments (2)

  1. Log in to comment