Amazon.Kinesis.AmazonKinesisClient.DeleteStreamAsync C# (CSharp) Метод

DeleteStreamAsync() публичный Метод

Initiates the asynchronous execution of the DeleteStream operation.
public DeleteStreamAsync ( DeleteStreamRequest request, DeleteStreamResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
request Amazon.Kinesis.Model.DeleteStreamRequest Container for the necessary parameters to execute the DeleteStream operation on AmazonKinesisClient.
callback DeleteStreamResponse>.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.
Результат void
        public void DeleteStreamAsync(DeleteStreamRequest request, AmazonServiceCallback<DeleteStreamRequest, DeleteStreamResponse> callback, AsyncOptions options = null)
        {
            options = options == null?new AsyncOptions():options;
            var marshaller = new DeleteStreamRequestMarshaller();
            var unmarshaller = DeleteStreamResponseUnmarshaller.Instance;
            Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null;
            if(callback !=null )
                callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { 
                    AmazonServiceResult<DeleteStreamRequest,DeleteStreamResponse> responseObject 
                            = new AmazonServiceResult<DeleteStreamRequest,DeleteStreamResponse>((DeleteStreamRequest)req, (DeleteStreamResponse)res, ex , ao.State);    
                        callback(responseObject); 
                };
            BeginInvoke<DeleteStreamRequest>(request, marshaller, unmarshaller, options, callbackHelper);
        }

Same methods

AmazonKinesisClient::DeleteStreamAsync ( DeleteStreamRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonKinesisClient