internal AddTagsToStreamResponse AddTagsToStream(AddTagsToStreamRequest request) { var marshaller = new AddTagsToStreamRequestMarshaller(); var unmarshaller = AddTagsToStreamResponseUnmarshaller.Instance; return(Invoke <AddTagsToStreamRequest, AddTagsToStreamResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the AddTagsToStream operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AddTagsToStream operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public Task <AddTagsToStreamResponse> AddTagsToStreamAsync(AddTagsToStreamRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new AddTagsToStreamRequestMarshaller(); var unmarshaller = AddTagsToStreamResponseUnmarshaller.Instance; return(InvokeAsync <AddTagsToStreamRequest, AddTagsToStreamResponse>(request, marshaller, unmarshaller, cancellationToken)); }
public void AddTagsToStreamMarshallTest() { var request = InstantiateClassGenerator.Execute<AddTagsToStreamRequest>(); var marshaller = new AddTagsToStreamRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); Comparer.CompareObjectToJson<AddTagsToStreamRequest>(request,jsonRequest); }
public void AddTagsToStreamMarshallTest() { var request = InstantiateClassGenerator.Execute <AddTagsToStreamRequest>(); var marshaller = new AddTagsToStreamRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); Comparer.CompareObjectToJson <AddTagsToStreamRequest>(request, jsonRequest); }
/// <summary> /// Initiates the asynchronous execution of the AddTagsToStream operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AddTagsToStream operation on AmazonKinesisClient.</param> /// <param name="callback">An Action delegate that is invoked when the operation completes.</param> /// <param name="options">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> public void AddTagsToStreamAsync(AddTagsToStreamRequest request, AmazonServiceCallback <AddTagsToStreamRequest, AddTagsToStreamResponse> callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var marshaller = new AddTagsToStreamRequestMarshaller(); var unmarshaller = AddTagsToStreamResponseUnmarshaller.Instance; Action <AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null; if (callback != null) { callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult <AddTagsToStreamRequest, AddTagsToStreamResponse> responseObject = new AmazonServiceResult <AddTagsToStreamRequest, AddTagsToStreamResponse>((AddTagsToStreamRequest)req, (AddTagsToStreamResponse)res, ex, ao.State); callback(responseObject); } } ; BeginInvoke <AddTagsToStreamRequest>(request, marshaller, unmarshaller, options, callbackHelper); }
/// <summary> /// Initiates the asynchronous execution of the AddTagsToStream operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AddTagsToStream operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public Task<AddTagsToStreamResponse> AddTagsToStreamAsync(AddTagsToStreamRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new AddTagsToStreamRequestMarshaller(); var unmarshaller = AddTagsToStreamResponseUnmarshaller.Instance; return InvokeAsync<AddTagsToStreamRequest,AddTagsToStreamResponse>(request, marshaller, unmarshaller, cancellationToken); }
internal AddTagsToStreamResponse AddTagsToStream(AddTagsToStreamRequest request) { var marshaller = new AddTagsToStreamRequestMarshaller(); var unmarshaller = AddTagsToStreamResponseUnmarshaller.Instance; return Invoke<AddTagsToStreamRequest,AddTagsToStreamResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the AddTagsToStream operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AddTagsToStream operation on AmazonKinesisClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAddTagsToStream /// operation.</returns> public IAsyncResult BeginAddTagsToStream(AddTagsToStreamRequest request, AsyncCallback callback, object state) { var marshaller = new AddTagsToStreamRequestMarshaller(); var unmarshaller = AddTagsToStreamResponseUnmarshaller.Instance; return BeginInvoke<AddTagsToStreamRequest>(request, marshaller, unmarshaller, callback, state); }
/// <summary> /// Initiates the asynchronous execution of the AddTagsToStream operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AddTagsToStream operation on AmazonKinesisClient.</param> /// <param name="callback">An Action delegate that is invoked when the operation completes.</param> /// <param name="options">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> public void AddTagsToStreamAsync(AddTagsToStreamRequest request, AmazonServiceCallback<AddTagsToStreamRequest, AddTagsToStreamResponse> callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var marshaller = new AddTagsToStreamRequestMarshaller(); var unmarshaller = AddTagsToStreamResponseUnmarshaller.Instance; Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult<AddTagsToStreamRequest,AddTagsToStreamResponse> responseObject = new AmazonServiceResult<AddTagsToStreamRequest,AddTagsToStreamResponse>((AddTagsToStreamRequest)req, (AddTagsToStreamResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke<AddTagsToStreamRequest>(request, marshaller, unmarshaller, options, callbackHelper); }