-
-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
IEnumerables in constructor injection (and I assume, but have not tested, property injection) are currently not being initialized and left as null. They should be resolved by Locator.Current.GetServices().
Here is a helper method workaround in the meantime.
public static void ResolveIEnumerable<T>(ref IEnumerable<T> target)
{
// https://github.com/reactivemarbles/Splat.DI.SourceGenerator/issues/72
if (target != null)
{
throw new InvalidOperationException("This issue has been resolved. Remove this method.");
}
target = Locator.Current.GetServices<T>();
}
schnerring
Metadata
Metadata
Assignees
Labels
No labels