part #2
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using StellaOps.Cryptography;
|
||||
|
||||
namespace StellaOps.Cryptography.DependencyInjection;
|
||||
|
||||
internal sealed class CryptoPluginProviderEnumerable : IEnumerable<ICryptoProvider>
|
||||
{
|
||||
private readonly IReadOnlyList<ICryptoProvider> _providers;
|
||||
|
||||
public CryptoPluginProviderEnumerable(IReadOnlyList<ICryptoProvider> providers)
|
||||
{
|
||||
_providers = providers ?? throw new ArgumentNullException(nameof(providers));
|
||||
}
|
||||
|
||||
public IEnumerator<ICryptoProvider> GetEnumerator() => _providers.GetEnumerator();
|
||||
IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();
|
||||
}
|
||||
Reference in New Issue
Block a user