SnapshotReaderConfigurationBuilder(
     ISnapshotDeserializer deserializer,
     IStreamNameResolver streamNameResolver,
     IStreamUserCredentialsResolver streamUserCredentialsResolver)
 {
     _deserializer = deserializer;
     _streamNameResolver = streamNameResolver;
     _streamUserCredentialsResolver = streamUserCredentialsResolver;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SnapshotReaderConfiguration"/> class.
 /// </summary>
 /// <param name="deserializer">The snapshot deserializer.</param>
 /// <param name="streamNameResolver">The snapshot stream name resolver.</param>
 /// <param name="streamUserCredentialsResolver">The snapshot stream user credentials resolver.</param>
 /// <exception cref="System.ArgumentNullException">Thrown when <paramref name="deserializer"/> or <paramref name="streamNameResolver"/> or <paramref name="streamUserCredentialsResolver"/> is <c>null</c>.</exception>
 public SnapshotReaderConfiguration(ISnapshotDeserializer deserializer, IStreamNameResolver streamNameResolver,
                                    IStreamUserCredentialsResolver streamUserCredentialsResolver)
 {
     if (deserializer == null) throw new ArgumentNullException("deserializer");
     if (streamNameResolver == null) throw new ArgumentNullException("streamNameResolver");
     if (streamUserCredentialsResolver == null) throw new ArgumentNullException("streamUserCredentialsResolver");
     _deserializer = deserializer;
     _streamNameResolver = streamNameResolver;
     _streamUserCredentialsResolver = streamUserCredentialsResolver;
 }
 EventReaderConfigurationBuilder(
     SliceSize sliceSize,
     IEventDeserializer deserializer,
     IStreamNameResolver streamNameResolver,
     IStreamUserCredentialsResolver streamUserCredentialsResolver)
 {
     _sliceSize = sliceSize;
     _deserializer = deserializer;
     _streamNameResolver = streamNameResolver;
     _streamUserCredentialsResolver = streamUserCredentialsResolver;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="EventReaderConfiguration"/> class.
 /// </summary>
 /// <param name="sliceSize">Size of the slice to read.</param>
 /// <param name="deserializer">The event deserializer to use.</param>
 /// <param name="streamNameResolver">The stream name resolver to use.</param>
 /// <param name="streamUserCredentialsResolver">The stream user credentials resolver to use.</param>
 /// <exception cref="System.ArgumentNullException">Thrown when the <paramref name="deserializer"/> or <paramref name="streamNameResolver"/> is <c>null</c>.</exception>
 public EventReaderConfiguration(SliceSize sliceSize, IEventDeserializer deserializer,
                                 IStreamNameResolver streamNameResolver,
                                 IStreamUserCredentialsResolver streamUserCredentialsResolver)
 {
     if (deserializer == null) throw new ArgumentNullException("deserializer");
     if (streamNameResolver == null) throw new ArgumentNullException("streamNameResolver");
     if (streamUserCredentialsResolver == null) throw new ArgumentNullException("streamUserCredentialsResolver");
     _sliceSize = sliceSize;
     _deserializer = deserializer;
     _streamNameResolver = streamNameResolver;
     _streamUserCredentialsResolver = streamUserCredentialsResolver;
 }
 public EventReaderConfigurationBuilder UsingStreamUserCredentialsResolver(IStreamUserCredentialsResolver value)
 {
     return new EventReaderConfigurationBuilder(_sliceSize, _deserializer, _streamNameResolver, value);
 }
 public SnapshotReaderConfigurationBuilder UsingStreamUserCredentialsResolver(
     IStreamUserCredentialsResolver value)
 {
     return new SnapshotReaderConfigurationBuilder(_deserializer, _streamNameResolver, value);
 }