internal DeleteIdentityResponse DeleteIdentity(DeleteIdentityRequest request) { var marshaller = new DeleteIdentityRequestMarshaller(); var unmarshaller = DeleteIdentityResponseUnmarshaller.Instance; return(Invoke <DeleteIdentityRequest, DeleteIdentityResponse>(request, marshaller, unmarshaller)); }
/// <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)); }
/// <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 async Task RemoveEmailAddressAsync(string emailAddress, CancellationToken ct = default) { var request = new DeleteIdentityRequest { Identity = emailAddress }; await amazonSES.DeleteIdentityAsync(request, ct); }
public async Task <JsonResult> Delete(Guid guid) { var request = new DeleteIdentityRequest() { Guid = guid }; var result = await _identityServiceWrapper.DeleteIdentity(request); return(new JsonResult(result)); }
public static void SESDeleteIdentity() { #region SESDeleteIdentity var sesClient = new AmazonSimpleEmailServiceClient(); var request = new DeleteIdentityRequest { Identity = "*****@*****.**" }; sesClient.DeleteIdentity(request); #endregion }
internal DeleteIdentityResponse DeleteIdentity(DeleteIdentityRequest request) { var task = DeleteIdentityAsync(request); try { return(task.Result); } catch (AggregateException e) { ExceptionDispatchInfo.Capture(e.InnerException).Throw(); return(null); } }
public override async Task <ProfileReply> DeleteIdentity(DeleteIdentityRequest request, ServerCallContext context) { var command = new DeleteIdentityCommand(request.Id.ToAccountId(), request.Identity.ToIdentityKey()); await _mediator.Send(command, context.CancellationToken); var data = await _mediator.Send(new GetAccountByIdQuery(request.Id.ToAccountId())); if (data is not null) { return(data.ToGatewayProfileReply()); } context.Status = new Status(StatusCode.NotFound, ElwarkExceptionCodes.AccountNotFound); return(new ProfileReply()); }
public async Task <CmdResponse> DeleteIdentity(DeleteIdentityRequest request) { return(await SendVoidAsync <DeleteIdentityRequest, CmdResponse>("DeleteIdentity", request)); }
/// <summary> /// Remove a service identity /// </summary> /// <returns> DeleteIdentityResponse object</returns> /// <param name="request"> DeleteIdentityRequest object</param> /// <param name='jsonRpcCallId'> /// The json rpc call identifier. This is a string generated by the client, which can be used to correlate the response to the request. Max length is 256 characters. A JSON-RPC id must be generated on a per call invocation basis. The Rogerthat platform uses the id of the call to store the call result for a certain amount of time so that if something fails during the communication, the same call (having the same JSON-RPC id) can be resent to the Rogerthat service, allowing to fetch the result, without actually executing the call again. This avoids annoying problems such as duplicate delivery of messages. /// /// You should use a different JSON-RPC id for every call you make. /// /// In case of an intermittent failure such as a network connectivity problem, you can retry the same call using the same JSON-RPC id, without running the risk of duplicate execution of your call (e.g. duplicate message delivery). /// </param> public DeleteIdentityResponse DeleteIdentity(DeleteIdentityRequest request, string jsonRpcCallId) { DeleteIdentityResponse result = new DeleteIdentityResponse(); WireRequest(0, jsonRpcCallId, "system.delete_identity", (writer) => { request.Write(writer, false); }, (reader) => { result.Read(reader); } ); return result; }
/// <summary> /// Remove a service identity /// </summary> /// <returns> DeleteIdentityResponse object</returns> /// <param name="request"> DeleteIdentityRequest object</param> public DeleteIdentityResponse DeleteIdentity(DeleteIdentityRequest request) { return DeleteIdentity(request, Guid.NewGuid().ToString()); }
public async Task <JsonResult> Delete([FromBody] DeleteIdentityRequest request) { var result = await _identityServiceWrapper.DeleteIdentity(request); return(new JsonResult(result)); }
public override Task <DeleteIdentityResponse> DeleteIdentity(DeleteIdentityRequest request, ServerCallContext context) { return(Task.FromResult(new DeleteIdentityResponse())); }