public async Task HandleServiceError(IIdentity identity, string workerId, string externalTaskId, string errorMessage, string errorDetails)
        {
            var uri = $"task/{externalTaskId}/handle_service_error";

            var request = new HandleServiceErrorRequest
                          (
                workerId,
                errorMessage,
                errorDetails
                          );

            await this.SendPostToExternalTaskApi(identity, uri, request);
        }
Exemple #2
0
        public async Task HandleServiceError(IIdentity identity, string workerId, string externalTaskId, string errorMessage, string errorDetails)
        {
            var endpoint = RestSettings.Paths.FinishExternalTaskWithServiceError.Replace(RestSettings.Params.ExternalTaskId, externalTaskId);

            var handleServiceErrorRequest = new HandleServiceErrorRequest
                                            (
                workerId,
                errorMessage,
                errorDetails
                                            );

            await this.PostExternalTaskRequest <HandleServiceErrorRequest>(identity, endpoint, handleServiceErrorRequest);
        }