If you are not writing your own task management system, you should probably never use it new Task(...).
However, aside, the reason why this does not work in this case is because it new Task(...)does not start by itself. It just creates a task object around your delegate.
You must either explicitly run it:
var t = new Task(() => string.Empty);
t.Start();
return t;
Or just use Task.Runinstead:
return Task.Run(() => string.Empty);
( new Task(...))
, - .
, . , "", , , , . , , , , :
return Task.FromResult(string.Empty);
" ".