public AddEncryptionSupportToClientsMigrationStep( IMongoDatabaseClientProvider clientProvider, MongoDbClientStoreSettings mongoDbClientStoreSettings, IStringProtectorFactory stringProtectorFactory) { if (clientProvider == null) { throw new ArgumentNullException(nameof(clientProvider)); } _mongoDbClientStoreSettings = mongoDbClientStoreSettings ?? throw new ArgumentNullException(nameof(mongoDbClientStoreSettings)); _stringProtectorFactory = stringProtectorFactory ?? throw new ArgumentNullException(nameof(stringProtectorFactory)); _lazyCollection = new Lazy <IMongoCollection <ClientDataRecordV2> >(() => { var database = clientProvider.Provide(); return(database.GetCollection <ClientDataRecordV2>(mongoDbClientStoreSettings.CollectionName)); }); }
public SignatureAlgorithmConverter(IStringProtectorFactory stringProtectorFactory) { _stringProtectorFactory = stringProtectorFactory ?? throw new ArgumentNullException(nameof(stringProtectorFactory)); }