/// <summary> /// <para>Deletes the specified identity (email address or domain) from the list of verified identities.</para> <para>This action is throttled /// at one request per second.</para> /// </summary> /// /// <param name="deleteIdentityRequest">Container for the necessary parameters to execute the DeleteIdentity service method on /// AmazonSimpleEmailService.</param> /// /// <returns>The response from the DeleteIdentity service method, as returned by AmazonSimpleEmailService.</returns> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task <DeleteIdentityResponse> DeleteIdentityAsync(DeleteIdentityRequest deleteIdentityRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteIdentityRequestMarshaller(); var unmarshaller = DeleteIdentityResponseUnmarshaller.GetInstance(); return(Invoke <IRequest, DeleteIdentityRequest, DeleteIdentityResponse>(deleteIdentityRequest, marshaller, unmarshaller, signer, cancellationToken)); }
internal DeleteIdentityResponse DeleteIdentity(DeleteIdentityRequest request) { var marshaller = new DeleteIdentityRequestMarshaller(); var unmarshaller = DeleteIdentityResponseUnmarshaller.Instance; return(Invoke <DeleteIdentityRequest, DeleteIdentityResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the DeleteIdentity operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteIdentity 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 <DeleteIdentityResponse> DeleteIdentityAsync(DeleteIdentityRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteIdentityRequestMarshaller(); var unmarshaller = DeleteIdentityResponseUnmarshaller.Instance; return(InvokeAsync <DeleteIdentityRequest, DeleteIdentityResponse>(request, marshaller, unmarshaller, cancellationToken)); }
public void DeleteIdentityMarshallTest() { var operation = service_model.FindOperation("DeleteIdentity"); var request = InstantiateClassGenerator.Execute<DeleteIdentityRequest>(); var marshaller = new DeleteIdentityRequestMarshaller(); 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 = DeleteIdentityResponseUnmarshaller.Instance.Unmarshall(context) as DeleteIdentityResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
public void DeleteIdentityMarshallTest() { var operation = service_model.FindOperation("DeleteIdentity"); var request = InstantiateClassGenerator.Execute <DeleteIdentityRequest>(); var marshaller = new DeleteIdentityRequestMarshaller(); 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 = DeleteIdentityResponseUnmarshaller.Instance.Unmarshall(context) as DeleteIdentityResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Initiates the asynchronous execution of the DeleteIdentity operation. /// <seealso cref="Amazon.SimpleEmail.IAmazonSimpleEmailService.DeleteIdentity"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteIdentity 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<DeleteIdentityResponse> DeleteIdentityAsync(DeleteIdentityRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteIdentityRequestMarshaller(); var unmarshaller = DeleteIdentityResponseUnmarshaller.GetInstance(); return Invoke<IRequest, DeleteIdentityRequest, DeleteIdentityResponse>(request, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the DeleteIdentity operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteIdentity 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<DeleteIdentityResponse> DeleteIdentityAsync(DeleteIdentityRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteIdentityRequestMarshaller(); var unmarshaller = DeleteIdentityResponseUnmarshaller.Instance; return InvokeAsync<DeleteIdentityRequest,DeleteIdentityResponse>(request, marshaller, unmarshaller, cancellationToken); }
/// <summary> /// Deletes the specified identity (an email address or a domain) from the list of verified /// identities. /// /// /// <para> /// This action is throttled at one request per second. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteIdentity service method.</param> /// /// <returns>The response from the DeleteIdentity service method, as returned by SimpleEmailService.</returns> public DeleteIdentityResponse DeleteIdentity(DeleteIdentityRequest request) { var marshaller = new DeleteIdentityRequestMarshaller(); var unmarshaller = DeleteIdentityResponseUnmarshaller.Instance; return Invoke<DeleteIdentityRequest,DeleteIdentityResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the DeleteIdentity operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteIdentity operation on AmazonSimpleEmailServiceClient.</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 EndDeleteIdentity /// operation.</returns> public IAsyncResult BeginDeleteIdentity(DeleteIdentityRequest request, AsyncCallback callback, object state) { var marshaller = new DeleteIdentityRequestMarshaller(); var unmarshaller = DeleteIdentityResponseUnmarshaller.Instance; return BeginInvoke<DeleteIdentityRequest>(request, marshaller, unmarshaller, callback, state); }
IAsyncResult invokeDeleteIdentity(DeleteIdentityRequest deleteIdentityRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DeleteIdentityRequestMarshaller().Marshall(deleteIdentityRequest); var unmarshaller = DeleteIdentityResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
IAsyncResult invokeDeleteIdentity(DeleteIdentityRequest request, AsyncCallback callback, object state, bool synchronized) { var marshaller = new DeleteIdentityRequestMarshaller(); var unmarshaller = DeleteIdentityResponseUnmarshaller.Instance; return Invoke(request, callback, state, synchronized, marshaller, unmarshaller, signer); }
/// <summary> /// Initiates the asynchronous execution of the DeleteIdentity operation. /// <seealso cref="Amazon.SimpleEmail.IAmazonSimpleEmailService.DeleteIdentity"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteIdentity 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 async Task<DeleteIdentityResponse> DeleteIdentityAsync(DeleteIdentityRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteIdentityRequestMarshaller(); var unmarshaller = DeleteIdentityResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, DeleteIdentityRequest, DeleteIdentityResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
/// <summary> /// Initiates the asynchronous execution of the DeleteIdentity operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteIdentity operation on AmazonSimpleEmailServiceClient.</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 DeleteIdentityAsync(DeleteIdentityRequest request, AmazonServiceCallback<DeleteIdentityRequest, DeleteIdentityResponse> callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var marshaller = new DeleteIdentityRequestMarshaller(); var unmarshaller = DeleteIdentityResponseUnmarshaller.Instance; Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult<DeleteIdentityRequest,DeleteIdentityResponse> responseObject = new AmazonServiceResult<DeleteIdentityRequest,DeleteIdentityResponse>((DeleteIdentityRequest)req, (DeleteIdentityResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke<DeleteIdentityRequest>(request, marshaller, unmarshaller, options, callbackHelper); }