internal void ApplyTo(IFileSystemInterface fsi) { fsi.SetWritePosition(_position, false); foreach (var bytes in _listOfBytes) fsi.WriteBytes(bytes, false); }
internal void ApplyTo(IFileSystemInterface fsi) { fsi.SetWritePosition(_position, false); foreach (var bytes in _listOfBytes) { fsi.WriteBytes(bytes, false); } }
private void Persist() { CheckFileAccess(null); Log4NetHelper.Instance.LogDebugMessage(string.Format("OdbTransaction: # Persisting transaction {0}", GetName())); _fsi.SetWritePosition(0, false); _fsi.WriteBoolean(_isCommited, false); _fsi.WriteLong(_creationDateTime, false); // Size _fsi.WriteLong(0, false); _hasBeenPersisted = true; }
private void Persist() { CheckFileAccess(null); if (OdbConfiguration.IsLoggingEnabled()) { DLogger.Debug(string.Format("OdbTransaction: # Persisting transaction {0}", GetName())); } _fsi.SetWritePosition(0, false); _fsi.WriteBoolean(_isCommited, false); _fsi.WriteLong(_creationDateTime, false); // Size _fsi.WriteLong(0, false); _hasBeenPersisted = true; }