Amazon.Kinesis.AmazonKinesisClient.GetRecords C# (CSharp) Method

GetRecords() private method

private GetRecords ( GetRecordsRequest request ) : GetRecordsResponse
request Amazon.Kinesis.Model.GetRecordsRequest
return Amazon.Kinesis.Model.GetRecordsResponse
        internal GetRecordsResponse GetRecords(GetRecordsRequest request)
        {
            var marshaller = new GetRecordsRequestMarshaller();
            var unmarshaller = GetRecordsResponseUnmarshaller.Instance;

            return Invoke<GetRecordsRequest,GetRecordsResponse>(request, marshaller, unmarshaller);
        }

Usage Example

		GetRecordsResponse GetRecords (AmazonKinesisClient client, string shardId)
		{
			var siRequest = new GetShardIteratorRequest ();
			siRequest.ShardId = shardId;
			siRequest.StreamName = "Test1";
			siRequest.ShardIteratorType = "TRIM_HORIZON";

			var siResponse = client.GetShardIterator (siRequest);
			var request = new GetRecordsRequest ();
			request.ShardIterator = siResponse.ShardIterator;

			return client.GetRecords (request);
		}
AmazonKinesisClient