Table of Contents

Class NullTracker

Namespace
VpnHood.Net.Toolkit.Trackers
Assembly
VpnHood.Net.Toolkit.dll

Provides a tracker that sends nothing: it logs each batch of events at Debug, as JSON, to VhLogger, whatever its switch and logger.

public class NullTracker : TrackerBase, ITracker
Inheritance
NullTracker
Implements
Inherited Members

Methods

Track(IEnumerable<TrackEvent>, CancellationToken)

Sends events.

public override Task Track(IEnumerable<TrackEvent> trackEvents, CancellationToken cancellationToken)

Parameters

trackEvents IEnumerable<TrackEvent>

The events.

cancellationToken CancellationToken

The token to monitor for cancellation requests.

Returns

Task

A task that represents the asynchronous operation.

Remarks

It logs the events, with their parameters as text, and sends nothing.