IAsyncResult invokeDisableLogging(DisableLoggingRequest disableLoggingRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DisableLoggingRequestMarshaller().Marshall(disableLoggingRequest); var unmarshaller = DisableLoggingResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// Stops logging information, such as queries and connection attempts, for the specified /// Amazon Redshift cluster. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisableLogging service method.</param> /// /// <returns>The response from the DisableLogging service method, as returned by Redshift.</returns> /// <exception cref="Amazon.Redshift.Model.ClusterNotFoundException"> /// The <i>ClusterIdentifier</i> parameter does not refer to an existing cluster. /// </exception> public DisableLoggingResponse DisableLogging(DisableLoggingRequest request) { var marshaller = new DisableLoggingRequestMarshaller(); var unmarshaller = DisableLoggingResponseUnmarshaller.Instance; return Invoke<DisableLoggingRequest,DisableLoggingResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the DisableLogging operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DisableLogging 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 EndDisableLogging /// operation.</returns> public IAsyncResult BeginDisableLogging(DisableLoggingRequest request, AsyncCallback callback, object state) { var marshaller = new DisableLoggingRequestMarshaller(); var unmarshaller = DisableLoggingResponseUnmarshaller.Instance; return BeginInvoke<DisableLoggingRequest>(request, marshaller, unmarshaller, callback, state); }
public void DisableLoggingMarshallTest() { var operation = service_model.FindOperation("DisableLogging"); var request = InstantiateClassGenerator.Execute<DisableLoggingRequest>(); var marshaller = new DisableLoggingRequestMarshaller(); 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 = DisableLoggingResponseUnmarshaller.Instance.Unmarshall(context) as DisableLoggingResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// <para>Stops logging information, such as queries and connection attempts, for the specified Amazon Redshift cluster.</para> /// </summary> /// /// <param name="disableLoggingRequest">Container for the necessary parameters to execute the DisableLogging service method on /// AmazonRedshift.</param> /// /// <returns>The response from the DisableLogging service method, as returned by AmazonRedshift.</returns> /// /// <exception cref="T:Amazon.Redshift.Model.ClusterNotFoundException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task<DisableLoggingResponse> DisableLoggingAsync(DisableLoggingRequest disableLoggingRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DisableLoggingRequestMarshaller(); var unmarshaller = DisableLoggingResponseUnmarshaller.GetInstance(); return Invoke<IRequest, DisableLoggingRequest, DisableLoggingResponse>(disableLoggingRequest, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// <para>Stops logging information, such as queries and connection attempts, for the specified Amazon Redshift cluster.</para> /// </summary> /// /// <param name="disableLoggingRequest">Container for the necessary parameters to execute the DisableLogging service method on /// AmazonRedshift.</param> /// /// <returns>The response from the DisableLogging service method, as returned by AmazonRedshift.</returns> /// /// <exception cref="T:Amazon.Redshift.Model.ClusterNotFoundException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public async Task<DisableLoggingResponse> DisableLoggingAsync(DisableLoggingRequest disableLoggingRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DisableLoggingRequestMarshaller(); var unmarshaller = DisableLoggingResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, DisableLoggingRequest, DisableLoggingResponse>(disableLoggingRequest, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
/// <summary> /// Initiates the asynchronous execution of the DisableLogging operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DisableLogging 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<DisableLoggingResponse> DisableLoggingAsync(DisableLoggingRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DisableLoggingRequestMarshaller(); var unmarshaller = DisableLoggingResponseUnmarshaller.Instance; return InvokeAsync<DisableLoggingRequest,DisableLoggingResponse>(request, marshaller, unmarshaller, cancellationToken); }
IAsyncResult invokeDisableLogging(DisableLoggingRequest request, AsyncCallback callback, object state, bool synchronized) { var marshaller = new DisableLoggingRequestMarshaller(); var unmarshaller = DisableLoggingResponseUnmarshaller.Instance; return Invoke(request, callback, state, synchronized, marshaller, unmarshaller, signer); }