AsyncTaskCodeActivity and lost context after await
问题 AsyncTaskCodeActivity fails when the context parameter is accessed after the first await is performed. For example: public class TestAsyncTaskCodeActivity : AsyncTaskCodeActivity<int> { protected async override Task<int> ExecuteAsync(AsyncCodeActivityContext context, CancellationToken cancellationToken) { await Task.Delay(50); // context has already been disposed and the next line throws // ObjectDisposedException with the message: // An ActivityContext can only be accessed within the scope