public StreamMetadataStore(IReadStreamProvider readStreamProvider, IWriteStreamProvider writeStreamProvider, ISerializer serializer) { if (readStreamProvider == null) throw new ArgumentNullException(nameof(readStreamProvider)); if (writeStreamProvider == null) throw new ArgumentNullException(nameof(writeStreamProvider)); if (serializer == null) throw new ArgumentNullException(nameof(serializer)); ReadStreamProvider = readStreamProvider; WriteStreamProvider = writeStreamProvider; Serializer = serializer; }
public TypedStreamMetadataStore(IReadStreamProvider readStreamProvider, IWriteStreamProvider writeStreamProvider, ITypedSerializer serializer) { if (readStreamProvider == null) { throw new ArgumentNullException(nameof(readStreamProvider)); } if (writeStreamProvider == null) { throw new ArgumentNullException(nameof(writeStreamProvider)); } if (serializer == null) { throw new ArgumentNullException(nameof(serializer)); } ReadStreamProvider = readStreamProvider; WriteStreamProvider = writeStreamProvider; Serializer = serializer; }