Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created August 22, 2022 16:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/d5e9ad4704dfe0d76f5eb68e2c98babe to your computer and use it in GitHub Desktop.
Save bjoerntx/d5e9ad4704dfe0d76f5eb68e2c98babe to your computer and use it in GitHub Desktop.
[Route("api/[controller]/merge")]
[HttpPost]
public ProcessingRequest Post(string webHookUrl) {
ProcessingRequest request = new ProcessingRequest() {
WebHookUrl = webHookUrl
};
request.Create(Url.ActionLink("Get", "DocumentProcessing", new { id = "1" }));
// start the document processing
Task.Run(() => TextControlProcessing.Merge(request));
// return the status immediately
return request;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment