Closed slimshader closed 9 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
vcontainer | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | May 22, 2023 3:27pm |
I get compile error when removing the constraint without casting the delegate like so:
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static RegistrationBuilder Register<TInterface>(
this IContainerBuilder builder,
Func<IObjectResolver, TInterface> implementationConfiguration,
Lifetime lifetime)
{
return builder.Register(new FuncRegistrationBuilder(Create, typeof(TInterface), lifetime));
object Create(IObjectResolver resolver) => implementationConfiguration(resolver);
}
👍
Fix for https://github.com/hadashiA/VContainer/issues/489