private void EnsureInitialized(string mode) { var checkpoint = collection.FindOneById(new BsonString(mode)); if (checkpoint == null) { checkpoint = new ProjectionCheckpointDto { Id = mode }; collection.Insert(checkpoint); } }
private void EnsureInitialized(string mode) { var checkpoint = collection.FindOneById(new BsonString(mode)); if (checkpoint == null) { checkpoint = new ProjectionCheckpointDto { Id = mode }; collection.Insert(checkpoint); } }