Пример #1
0
        /// <inheritdoc />
        public async Task <SubmitRecordsResponse> SubmitRecordsAsync(SubmitRecordsRequest request, CancellationToken cancellationToken = default)
        {
            SubmitRecordsServiceRequest serviceRequest = new SubmitRecordsServiceRequest(
                this.Service,
                request
                );

            return(await serviceRequest.ExecuteAsync(cancellationToken));
        }
Пример #2
0
        /// <summary>
        /// Submits records to the workflow server.
        /// </summary>
        /// <param name="request">Records request body.</param>
        /// <returns></returns>
        public SubmitRecordsResponse SubmitRecords(SubmitRecordsRequest request)
        {
            SubmitRecordsServiceRequest serviceRequest = new SubmitRecordsServiceRequest(
                this.Service,
                request
                );

            SubmitRecordsResponse response = serviceRequest.Execute();

            return(response);
        }
Пример #3
0
 /// <summary>
 /// Constructs a new request.
 /// </summary>
 /// <param name="service"></param>
 /// <param name="body"></param>
 public SubmitRecordsServiceRequest(BaseRestService service, SubmitRecordsRequest body) : base(service)
 {
     _body = body;
 }