Table of Contents

Method TryComplete

Namespace
NATS.Client.Services
Assembly
NATS.Client.Services.dll

TryComplete()

Invoked to signal end of the subscription.

protected override void TryComplete()

Remarks

Do not implement complex logic in this method. It should only be used to complete the channel writers. The reason is that this method might be invoked while instance is being created in constructors and the cancellation token might be cancelled before the members are fully initialized.