/// <summary>
        /// Writer for processed measurements stream
        /// </summary>
        /// <returns></returns>
        public IProcessedMeasurementStreamWriter CreateWriter()
        {
            // Processed measurements go to this stream.
            var            measurementsStreamName = _awsSettings.ProcessedMeasurementsStreamName;
            IAmazonKinesis client = _clientFactory.CreateKinesisClient();

            return(new ProcessedMeasurementStreamWriter(client, measurementsStreamName, _logger));
        }
 public KinesisStreamCreator(IAwsClientFactory clientFactory, string rawStreamName, string measurementsStreamName, ILogger logger)
 {
     _client                 = clientFactory.CreateKinesisClient();
     _rawStreamName          = rawStreamName;
     _measurementsStreamName = measurementsStreamName;
     _logger                 = logger;
 }