public ScopedActivationStrategy(IActivationStrategy innerActivationStrategy) : base(innerActivationStrategy)
 {
     if (innerActivationStrategy.SharingScope() != IocContainers.SharingScope.Transient)
     {
         throw new IocException("Bindings may only specify at most one lifetime.");
     }
 }
 public static IActivationStrategy EnsureSingleton(IActivationStrategy inner) =>
 inner.SharingScope() == IocContainers.SharingScope.Singleton
         ? inner
         : new SingletonActivationStrategy(inner);