Skip to content

NoOpCheckpointer Methods

NoOpCheckpointer is used in EventDataGeneratorStreamProvider ecosystem to replace the default Checkpointer which requires a back end storage. In EventHubDataGeneratorStreamProvider, it is generating EventData on the fly when receiver pull messages from the queue, which means it doesn't support recoverable stream, hence check pointing won't bring much value there. So a checkpointer with no ops should be enough.

Load

View source
public Task<string> Load()
Loads the checkpoint.

Returns

The checkpoint.

Update(string, DateTime)

View source
public void Update(string offset, DateTime utcNow)
Ignores a checkpoint update because generated-event streams do not persist checkpoints.

Parameters

offsetstring
The ignored offset.
utcNowDateTime
The ignored update time.