Table of Contents

Method TrySetCompleted

Namespace
DisCatSharp.Net
Assembly
DisCatSharp.dll

TrySetCompleted(RestResponse)

Tries to set as completed. Used during fault recovery to safely complete requests that were queued but never sent.

protected bool TrySetCompleted(RestResponse response)

Parameters

response RestResponse

The response to set.

Returns

bool

true if the result was set; false if already completed/faulted.