AsLongRunningTask extension method