Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="5.17.0" />

 IServiceWrapper

public interface IServiceWrapper : IResolver
Represents a wrapper that can wrap a service.
using System; using System.Linq.Expressions; using System.Runtime.CompilerServices; namespace Stashbox.Resolution { [System.Runtime.CompilerServices.NullableContext(1)] public interface IServiceWrapper : IResolver { Expression WrapExpression(TypeInformation originalTypeInformation, TypeInformation wrappedTypeInformation, ServiceContext serviceContext); bool TryUnWrap(Type type, out Type unWrappedType); } }