예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DefaultDataStore"/> class.
 /// </summary>
 /// <param name="requestExecutor">The <see cref="IRequestExecutor">RequestExecutor</see> to use.</param>
 /// <param name="serializer">The <see cref="ISerializer">Serializer</see> to use.</param>
 /// <param name="resourceFactory">The <see cref="ResourceFactory"/>.</param>
 /// <param name="logger">The logging interface.</param>
 /// <param name="userAgentBuilder">The user agent builder.</param>
 public DefaultDataStore(
     IRequestExecutor requestExecutor,
     ISerializer serializer,
     ResourceFactory resourceFactory,
     ILogger logger,
     UserAgentBuilder userAgentBuilder)
 {
     _requestExecutor  = requestExecutor ?? throw new ArgumentNullException(nameof(requestExecutor));
     _serializer       = serializer ?? throw new ArgumentNullException(nameof(serializer));
     _resourceFactory  = resourceFactory ?? throw new ArgumentNullException(nameof(resourceFactory));
     _logger           = logger;
     _userAgentBuilder = userAgentBuilder;
 }