Skip to main content
removed C#4, added .NET4 tag
Source Link
PVitt
  • 11.8k
  • 5
  • 54
  • 85

for a task, potentially taking too long to complete, I'd like a mechanism

  1. to start the task
  2. return back to user interface (its a web page)
  3. periodically/randomly check if the task is complete
  4. cancel the executing task when user wishes so
  5. get notified when the task completes / fails

what are the possible solutions?

  1. Threads? Start a thread, save its ManagedThreadId, (can you get a thread by its id)

  2. write a windows service, send the request to service via shared objects/files/db? keep interacting with the service the same way (objects/files/db,etc) Services? Edit: C# 4

for a task, potentially taking too long to complete, I'd like a mechanism

  1. to start the task
  2. return back to user interface (its a web page)
  3. periodically/randomly check if the task is complete
  4. cancel the executing task when user wishes so
  5. get notified when the task completes / fails

what are the possible solutions?

  1. Threads? Start a thread, save its ManagedThreadId, (can you get a thread by its id)

  2. write a windows service, send the request to service via shared objects/files/db? keep interacting with the service the same way (objects/files/db,etc) Services? Edit: C# 4

for a task, potentially taking too long to complete, I'd like a mechanism

  1. to start the task
  2. return back to user interface (its a web page)
  3. periodically/randomly check if the task is complete
  4. cancel the executing task when user wishes so
  5. get notified when the task completes / fails

what are the possible solutions?

  1. Threads? Start a thread, save its ManagedThreadId, (can you get a thread by its id)

  2. write a windows service, send the request to service via shared objects/files/db? keep interacting with the service the same way (objects/files/db,etc) Services?

added 11 characters in body
Source Link
hazimdikenli
  • 6.1k
  • 8
  • 41
  • 67

for a task, potentially taking too long to complete, I'd like a mechanism

  1. to start the task
  2. return back to user interface (its a web page)
  3. periodically/randomly check if the task is complete
  4. cancel the executing task when user wishes so
  5. get notified when the task completes / fails

what are the possible solutions?

  1. Threads? Start a thread, save its ManagedThreadId, (can you get a thread by its id)

  2. write a windows service, send the request to service via shared objects/files/db? keep interacting with the service the same way (objects/files/db,etc) Services? Edit: C# 4

for a task, potentially taking too long to complete, I'd like a mechanism

  1. to start the task
  2. return back to user interface (its a web page)
  3. periodically/randomly check if the task is complete
  4. cancel the executing task when user wishes so
  5. get notified when the task completes / fails

what are the possible solutions?

  1. Threads? Start a thread, save its ManagedThreadId, (can you get a thread by its id)

  2. write a windows service, send the request to service via shared objects/files/db? keep interacting with the service the same way (objects/files/db,etc) Services?

for a task, potentially taking too long to complete, I'd like a mechanism

  1. to start the task
  2. return back to user interface (its a web page)
  3. periodically/randomly check if the task is complete
  4. cancel the executing task when user wishes so
  5. get notified when the task completes / fails

what are the possible solutions?

  1. Threads? Start a thread, save its ManagedThreadId, (can you get a thread by its id)

  2. write a windows service, send the request to service via shared objects/files/db? keep interacting with the service the same way (objects/files/db,etc) Services? Edit: C# 4

deleted 10 characters in body
Source Link
Marcelo Cantos
  • 187.1k
  • 40
  • 338
  • 366

for a task, potentially taking too long to complete, I'd like a mechanism

1- to start the task

2- return back to user interface (its a web page)

3- periodically/randomly check if the task is complete

4- cancel the executing task when user wishes so

5- get notified when the task completes / fails

  1. to start the task
  2. return back to user interface (its a web page)
  3. periodically/randomly check if the task is complete
  4. cancel the executing task when user wishes so
  5. get notified when the task completes / fails

what are the possible solutions?

1- Threads? Start a thread, save its ManagedThreadId, (can you get a thread by its id)

2- write a windows service, send the request to service via shared objects/files/db? keep interacting with the service the same way (objects/files/db,etc) Services?

  1. Threads? Start a thread, save its ManagedThreadId, (can you get a thread by its id)

  2. write a windows service, send the request to service via shared objects/files/db? keep interacting with the service the same way (objects/files/db,etc) Services?

for a task, potentially taking too long to complete, I'd like a mechanism

1- to start the task

2- return back to user interface (its a web page)

3- periodically/randomly check if the task is complete

4- cancel the executing task when user wishes so

5- get notified when the task completes / fails

what are the possible solutions?

1- Threads? Start a thread, save its ManagedThreadId, (can you get a thread by its id)

2- write a windows service, send the request to service via shared objects/files/db? keep interacting with the service the same way (objects/files/db,etc) Services?

for a task, potentially taking too long to complete, I'd like a mechanism

  1. to start the task
  2. return back to user interface (its a web page)
  3. periodically/randomly check if the task is complete
  4. cancel the executing task when user wishes so
  5. get notified when the task completes / fails

what are the possible solutions?

  1. Threads? Start a thread, save its ManagedThreadId, (can you get a thread by its id)

  2. write a windows service, send the request to service via shared objects/files/db? keep interacting with the service the same way (objects/files/db,etc) Services?

Source Link
hazimdikenli
  • 6.1k
  • 8
  • 41
  • 67
Loading