EventStore.Core.TransactionLog.Checkpoint.FileCheckpoint.Write C# (CSharp) Method

Write() public method

public Write ( long checkpoint ) : void
checkpoint long
return void
        public void Write(long checkpoint)
        {
            Interlocked.Exchange(ref _last, checkpoint);
        }

Usage Example

 public void reading_off_same_instance_gives_most_up_to_date_info()
 {
     var checkSum = new FileCheckpoint(Filename);
     checkSum.Write(0xDEAD);
     checkSum.Flush();
     var read = checkSum.Read();
     checkSum.Close();
     Assert.AreEqual(0xDEAD, read);
 }
All Usage Examples Of EventStore.Core.TransactionLog.Checkpoint.FileCheckpoint::Write