HTTPListener and LongRunning jobs
I have created a webservice with httplistener , for some requests it needs
some long running jobs which might take about 10 minutes . So I do
following and return from server .
var task = Task.Factory.StartNew(() => ImportDocuments(),
TaskCreationOptions.LongRunning); CreateResponse(context.Response,
"started");
Is this gauranteed to return from server and launch a new thread to
complete task or I have to use Process.Start ? I didnt use process.start
as I have to than implement a seperate application than windows
application .
No comments:
Post a Comment