RequestTaskCancellation(string?)
protected internal void RequestTaskCancellation(string? reason) Requests durable cancellation of the task which this context runs, carrying
reason. Parameters
reasonstring?- The reason which
DurableTaskContextreports, ornullfor none. The first request determines the reason, so a host which replays a canceled task passes the reason it recorded with the task's cancellation.
