Method TryRequestStop
- Namespace
- MailFathom.Application.Discovery.Streaming
- Assembly
- MailFathom.Application.dll
TryRequestStop(DiscoveryRunId, UserId)
Asks a run this user started and this replica is executing to stop, where it is one.
public bool TryRequestStop(DiscoveryRunId id, UserId user)
Parameters
idDiscoveryRunIdThe run the caller is stopping.
userUserIdThe user the caller was admitted for.
Returns
Remarks
Checked against the user for the reason every other lookup of a run is: an identifier is a bearer value that travelled to a client and back, so somebody else's run is not reachable through it. Answering false says nothing about whether the run exists — it may be executing on another replica — which is why the caller's answer to the client comes from the record rather than from here.