FileRecordSequence Class
Implements an IRecordSequence on top of a file. This class cannot be inherited.
Assembly: System.IO.Log (in System.IO.Log.dll)
The FileRecordSequence type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | FileRecordSequence(String) | Initializes a new instance of the FileRecordSequence class with a specified file. |
![]() | FileRecordSequence(String, FileAccess) | Initializes a new instance of the FileRecordSequence class with a specified file and an access mode. |
![]() | FileRecordSequence(String, FileAccess, Int32) | Initializes a new instance of the FileRecordSequence class with a specified file, an access mode, and a file size. |
| Name | Description | |
|---|---|---|
![]() | BaseSequenceNumber | Gets the sequence number of the first valid record in the current FileRecordSequence. |
![]() | LastSequenceNumber | Gets the sequence number which is greater than the last record appended. |
![]() | MaximumRecordLength | Gets the size of the largest record that can be appended to or read from this sequence, in bytes. |
![]() | ReservedBytes | Gets the total number of bytes that have been reserved. |
![]() | RestartSequenceNumber | Gets the sequence number of the most recently written restart area. |
![]() | RetryAppend | Gets or sets a value indicating whether or not appends are automatically retried if the log is full. |
| Name | Description | |
|---|---|---|
![]() | AdvanceBaseSequenceNumber | Moves the base sequence number of the log forward. This method cannot be inherited. |
![]() | Append(ArraySegment<Byte>, SequenceNumber, SequenceNumber, RecordAppendOptions) | Writes a log record to the FileRecordSequence. This method cannot be inherited. |
![]() | Append(IList<ArraySegment<Byte>>, SequenceNumber, SequenceNumber, RecordAppendOptions) | Writes a log record to the FileRecordSequence. This method cannot be inherited. |
![]() | Append(ArraySegment<Byte>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection) | Writes a log record to the FileRecordSequence, using space previously reserved in the sequence. This method cannot be inherited. |
![]() | Append(IList<ArraySegment<Byte>>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection) | Writes a log record to the FileRecordSequence, using space previously reserved in the sequence. This method cannot be inherited. |
![]() | BeginAppend(ArraySegment<Byte>, SequenceNumber, SequenceNumber, RecordAppendOptions, AsyncCallback, Object) | Begins an asynchronous append operation. This method cannot be inherited. |
![]() | BeginAppend(IList<ArraySegment<Byte>>, SequenceNumber, SequenceNumber, RecordAppendOptions, AsyncCallback, Object) | Begins an asynchronous append operation. This method cannot be inherited. |
![]() | BeginAppend(ArraySegment<Byte>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection, AsyncCallback, Object) | Begins an asynchronous append operation using space previously reserved in the sequence. This method cannot be inherited. |
![]() | BeginAppend(IList<ArraySegment<Byte>>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection, AsyncCallback, Object) | Begins an asynchronous append operation using space previously reserved in the sequence. This method cannot be inherited. |
![]() | BeginFlush | Begins an asynchronous flush operation, using space previously reserved in the sequence. This method cannot be inherited. |
![]() | BeginReserveAndAppend(ArraySegment<Byte>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection, array<Int64>, AsyncCallback, Object) | Begins an asynchronous reserve and append operation. This method cannot be inherited. |
![]() | BeginReserveAndAppend(IList<ArraySegment<Byte>>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection, array<Int64>, AsyncCallback, Object) | Begins an asynchronous reserve and append operation. This method cannot be inherited. |
![]() | BeginWriteRestartArea(ArraySegment<Byte>, SequenceNumber, ReservationCollection, AsyncCallback, Object) | Begins an asynchronous restart area write operation, using space previously reserved in the sequence. This method cannot be inherited. |
![]() | BeginWriteRestartArea(IList<ArraySegment<Byte>>, SequenceNumber, ReservationCollection, AsyncCallback, Object) | Begins an asynchronous restart area write operation, using space previously reserved in the sequence. This method cannot be inherited. |
![]() | CreateReservationCollection | Creates a new ReservationCollection. This method cannot be inherited. |
![]() | Dispose | Immediately releases the unmanaged resources used by an object. |
![]() | EndAppend | Ends an asynchronous append operation. This method cannot be inherited. |
![]() | EndFlush | Ends an asynchronous flush operation. This method cannot be inherited. |
![]() | EndReserveAndAppend | Ends an asynchronous reserve and append operation. This method cannot be inherited. |
![]() | EndWriteRestartArea | Ends an asynchronous restart area write operation. This method cannot be inherited. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | Flush() | Ensures that all appended records have been written. This method cannot be inherited. |
![]() | Flush(SequenceNumber) | Ensures that all appended records have been written. This method cannot be inherited. |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ReadLogRecords | Returns an enumerable collection of records in the sequence. This method cannot be inherited. |
![]() | ReadRestartAreas | Returns an enumerable collection of the restart areas in the sequence. This method cannot be inherited. |
![]() | ReserveAndAppend(ArraySegment<Byte>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection, array<Int64>) | Automatically makes a single reservation and appends a record to the sequence. This method cannot be inherited. |
![]() | ReserveAndAppend(IList<ArraySegment<Byte>>, SequenceNumber, SequenceNumber, RecordAppendOptions, ReservationCollection, array<Int64>) | Automatically makes a single reservation and appends a record to the sequence. This method cannot be inherited. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | WriteRestartArea(ArraySegment<Byte>) | Writes a restart area to the FileRecordSequence. This method cannot be inherited. |
![]() | WriteRestartArea(IList<ArraySegment<Byte>>) | Writes a restart area to the FileRecordSequence. This method cannot be inherited. |
![]() | WriteRestartArea(ArraySegment<Byte>, SequenceNumber) | Writes a restart area to the FileRecordSequence. This method cannot be inherited. |
![]() | WriteRestartArea(IList<ArraySegment<Byte>>, SequenceNumber) | Writes a restart area to the FileRecordSequence. This method cannot be inherited. |
![]() | WriteRestartArea(ArraySegment<Byte>, SequenceNumber, ReservationCollection) | Writes a restart area to the FileRecordSequence. This method cannot be inherited. |
![]() | WriteRestartArea(IList<ArraySegment<Byte>>, SequenceNumber, ReservationCollection) | Writes a restart area to the FileRecordSequence. This method cannot be inherited. |
| Name | Description | |
|---|---|---|
![]() | TailPinned | Occurs when the record sequence determines that the tail must be moved forward. This method cannot be inherited. |
The FileRecordSequence is a record sequence based on a single log file in the file system. It is a simple implementation of the IRecordSequence interface, on top of a simple file-based log.
To manipulate a file-based log, the account that your application is running in must have sufficient privileges, as dictated by the file system security at the time the FileRecordSequence is constructed. In addition, a demand for FullTrust is made at construction time. The permission verification results are cached thereafter in keeping with the Windows security model. You should ensure that you do not accidentally expose the contents of the record sequence to an unauthorized user.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
