Example #1
0
        /// <inheritdoc />
        public async Task <DeleteRecordsResponse> DeleteRecordsAsync(DeleteRecordsRequest request, CancellationToken cancellationToken = default)
        {
            DeleteRecordsServiceRequest serviceRequest = new DeleteRecordsServiceRequest(
                this.Service,
                request
                );

            return(await serviceRequest.ExecuteAsync(cancellationToken));
        }
Example #2
0
        /// <summary>
        /// Delete records from the workflow server.
        /// </summary>
        /// <param name="request">Delete request.</param>
        public DeleteRecordsResponse DeleteRecords(DeleteRecordsRequest request)
        {
            DeleteRecordsServiceRequest serviceRequest = new DeleteRecordsServiceRequest(
                this.Service,
                request
                );

            DeleteRecordsResponse response = serviceRequest.Execute();

            return(response);
        }
 /// <summary>
 /// Constructs a new request.
 /// </summary>
 /// <param name="service"></param>
 /// <param name="body"></param>
 public DeleteRecordsServiceRequest(BaseRestService service, DeleteRecordsRequest body) : base(service)
 {
     _body = body;
 }