using System; using System.Collections; using System.Collections.Generic; using StellaOps.Cryptography; namespace StellaOps.Cryptography.DependencyInjection; internal sealed class CryptoPluginProviderEnumerable : IEnumerable { private readonly IReadOnlyList _providers; public CryptoPluginProviderEnumerable(IReadOnlyList providers) { _providers = providers ?? throw new ArgumentNullException(nameof(providers)); } public IEnumerator GetEnumerator() => _providers.GetEnumerator(); IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); }