public void DescribeEventCategoriesMarshallTest() { var operation = service_model.FindOperation("DescribeEventCategories"); var request = InstantiateClassGenerator.Execute <DescribeEventCategoriesRequest>(); var marshaller = new DescribeEventCategoriesRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, null); var response = DescribeEventCategoriesResponseUnmarshaller.Instance.Unmarshall(context) as DescribeEventCategoriesResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
IAsyncResult invokeDescribeEventCategories(DescribeEventCategoriesRequest describeEventCategoriesRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DescribeEventCategoriesRequestMarshaller().Marshall(describeEventCategoriesRequest); var unmarshaller = DescribeEventCategoriesResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// Initiates the asynchronous execution of the DescribeEventCategories operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeEventCategories 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<DescribeEventCategoriesResponse> DescribeEventCategoriesAsync(DescribeEventCategoriesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeEventCategoriesRequestMarshaller(); var unmarshaller = DescribeEventCategoriesResponseUnmarshaller.Instance; return InvokeAsync<DescribeEventCategoriesRequest,DescribeEventCategoriesResponse>(request, marshaller, unmarshaller, cancellationToken); }
/// <summary> /// Displays a list of categories for all event source types, or, if specified, for a /// specified source type. You can see a list of the event categories and source types /// in the <a href="http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Events.html"> /// Events</a> topic in the <i>Amazon RDS User Guide.</i> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeEventCategories service method.</param> /// /// <returns>The response from the DescribeEventCategories service method, as returned by RDS.</returns> public DescribeEventCategoriesResponse DescribeEventCategories(DescribeEventCategoriesRequest request) { var marshaller = new DescribeEventCategoriesRequestMarshaller(); var unmarshaller = DescribeEventCategoriesResponseUnmarshaller.Instance; return Invoke<DescribeEventCategoriesRequest,DescribeEventCategoriesResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the DescribeEventCategories operation. /// <seealso cref="Amazon.RDS.IAmazonRDS.DescribeEventCategories"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeEventCategories 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<DescribeEventCategoriesResponse> DescribeEventCategoriesAsync(DescribeEventCategoriesRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeEventCategoriesRequestMarshaller(); var unmarshaller = DescribeEventCategoriesResponseUnmarshaller.GetInstance(); return Invoke<IRequest, DescribeEventCategoriesRequest, DescribeEventCategoriesResponse>(request, marshaller, unmarshaller, signer, cancellationToken); }
public void DescribeEventCategoriesMarshallTest() { var operation = service_model.FindOperation("DescribeEventCategories"); var request = InstantiateClassGenerator.Execute<DescribeEventCategoriesRequest>(); var marshaller = new DescribeEventCategoriesRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, null); var response = DescribeEventCategoriesResponseUnmarshaller.Instance.Unmarshall(context) as DescribeEventCategoriesResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Initiates the asynchronous execution of the DescribeEventCategories operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeEventCategories operation on AmazonRedshiftClient.</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 EndDescribeEventCategories /// operation.</returns> public IAsyncResult BeginDescribeEventCategories(DescribeEventCategoriesRequest request, AsyncCallback callback, object state) { var marshaller = new DescribeEventCategoriesRequestMarshaller(); var unmarshaller = DescribeEventCategoriesResponseUnmarshaller.Instance; return BeginInvoke<DescribeEventCategoriesRequest>(request, marshaller, unmarshaller, callback, state); }
/// <summary> /// <para>Displays a list of event categories for all event source types, or for a specified source type. For a list of the event categories and /// source types, go to <a href="http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-event-notifications.html">Amazon Redshift Event /// Notifications</a> .</para> /// </summary> /// /// <param name="describeEventCategoriesRequest">Container for the necessary parameters to execute the DescribeEventCategories service method on /// AmazonRedshift.</param> /// /// <returns>The response from the DescribeEventCategories service method, as returned by AmazonRedshift.</returns> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public async Task<DescribeEventCategoriesResponse> DescribeEventCategoriesAsync(DescribeEventCategoriesRequest describeEventCategoriesRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeEventCategoriesRequestMarshaller(); var unmarshaller = DescribeEventCategoriesResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, DescribeEventCategoriesRequest, DescribeEventCategoriesResponse>(describeEventCategoriesRequest, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
IAsyncResult invokeDescribeEventCategories(DescribeEventCategoriesRequest request, AsyncCallback callback, object state, bool synchronized) { var marshaller = new DescribeEventCategoriesRequestMarshaller(); var unmarshaller = DescribeEventCategoriesResponseUnmarshaller.Instance; return Invoke(request, callback, state, synchronized, marshaller, unmarshaller, signer); }