reactiveui/splat

[BUG] Registered Func cant be resolved

alex6dj opened this issue · 0 comments

Describe the bug

After registering a Func<>
services.Register<Func<IEnumerator>>(() => () => new SmsEnumerator());

It cant be correctly resolved:
resolver.GetRequiredService<Func<IEnumerator>>()

with an System.InvalidOperationException.

Maybe Splat can't resolve registered Func<>

Expected behavior
Splat should correctly return a Func<>

Environment:

  • OS: Windows 10, Android 6
  • Version 10.0.1, (Avalonia 0.10.999-cibuild0019213-beta)
  • Device: LG K8, Android 6

Additional context
Using Microsoft DI Func<> can be registered and resolved. I'm using it as a factory.