I am new to C#, coming from C++ and would like to ask if this is a correct way of using Task Parallel Library.
I have a Web Service which queues long running operations. I don't want to use async web calls, so my idea is to use TPL, creating a task when the web operation is called. I am wondering if there is any kind of a resource leak if I schedule the task from a thread that dies right after the web operation finishes. Let's say that I would not keep a reference to the task as I don't need to check its status nor result. Thanks.
EDIT: Sry, didn't express myself clearly on the first shot. My question is related to web service, not to a client. Client calls the web service operation that takes a long time. Web service call returns saying that operation was successfully queued/executed on background. In the web service operation, I would like to use TPL and not storing a task object returned by StartNew. Wondering, whether the task object is kept forever if I don't read its status and therefore leaking. Maybe it is just my C++ thinking that is getting in the way and I should not take care about the leak given it is managed code.