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

DescribeStreamAsync() public method

Initiates the asynchronous execution of the DescribeStream operation.
public DescribeStreamAsync ( DescribeStreamRequest request, DescribeStreamResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
request Amazon.Kinesis.Model.DescribeStreamRequest Container for the necessary parameters to execute the DescribeStream operation on AmazonKinesisClient.
callback DescribeStreamResponse>.AmazonServiceCallback An Action delegate that is invoked when the operation completes.
options Amazon.Runtime.AsyncOptions A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.
return void
        public void DescribeStreamAsync(DescribeStreamRequest request, AmazonServiceCallback<DescribeStreamRequest, DescribeStreamResponse> callback, AsyncOptions options = null)
        {
            options = options == null?new AsyncOptions():options;
            var marshaller = new DescribeStreamRequestMarshaller();
            var unmarshaller = DescribeStreamResponseUnmarshaller.Instance;
            Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null;
            if(callback !=null )
                callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { 
                    AmazonServiceResult<DescribeStreamRequest,DescribeStreamResponse> responseObject 
                            = new AmazonServiceResult<DescribeStreamRequest,DescribeStreamResponse>((DescribeStreamRequest)req, (DescribeStreamResponse)res, ex , ao.State);    
                        callback(responseObject); 
                };
            BeginInvoke<DescribeStreamRequest>(request, marshaller, unmarshaller, options, callbackHelper);
        }

Same methods

AmazonKinesisClient::DescribeStreamAsync ( DescribeStreamRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonKinesisClient