Table of Contents

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

id DiscoveryRunId

The run the caller is stopping.

user UserId

The user the caller was admitted for.

Returns

bool

true when this replica was executing that run and has asked it to stop.

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.