You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>();
}
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: