Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / Log / System / IO / Log / FileLogRecord.cs / 1305376 / FileLogRecord.cs
//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
namespace System.IO.Log
{
using System;
internal class FileLogRecord : LogRecord
{
FileLogRecordStream stream;
internal FileLogRecord(FileLogRecordStream stream)
{
this.stream = stream;
}
public override Stream Data
{
get { return this.stream; }
}
public override SequenceNumber Previous
{
get
{
if (this.stream.Header.IsRestartArea)
{
return SequenceNumber.Invalid;
}
else
{
return this.stream.Header.PreviousLsn;
}
}
}
public override SequenceNumber SequenceNumber
{
get { return this.stream.RecordSequenceNumber; }
}
public override SequenceNumber User
{
get
{
if (this.stream.Header.IsRestartArea)
{
return SequenceNumber.Invalid;
}
else
{
return this.stream.Header.NextUndoLsn;
}
}
}
public override void Dispose()
{
this.stream.Close();
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TypeUtils.cs
- StyleSelector.cs
- DataGridItem.cs
- ResourcesChangeInfo.cs
- PeerApplicationLaunchInfo.cs
- Exceptions.cs
- WithParamAction.cs
- SHA384.cs
- Splitter.cs
- SchemaImporterExtensionElement.cs
- ISessionStateStore.cs
- FixedSOMFixedBlock.cs
- DesignerCalendarAdapter.cs
- MexNamedPipeBindingCollectionElement.cs
- BasicViewGenerator.cs
- TextTreeRootNode.cs
- XmlSchemaSimpleContentRestriction.cs
- LogReservationCollection.cs
- ApplicationDirectory.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- EntityViewGenerator.cs
- AssemblyAttributes.cs
- DropDownList.cs
- ToolStripSeparatorRenderEventArgs.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- ClientBuildManager.cs
- itemelement.cs
- DataErrorValidationRule.cs
- SQlBooleanStorage.cs
- cookie.cs
- DynamicQueryStringParameter.cs
- AdapterUtil.cs
- UnitySerializationHolder.cs
- MonthCalendar.cs
- KnownTypeAttribute.cs
- CommentAction.cs
- DependencyObjectProvider.cs
- filewebresponse.cs
- figurelengthconverter.cs
- IProvider.cs
- ListViewItemSelectionChangedEvent.cs
- PcmConverter.cs
- ReachSerializerAsync.cs
- _NestedSingleAsyncResult.cs
- unsafeIndexingFilterStream.cs
- SoapAttributeAttribute.cs
- SHA512.cs
- AutomationElementCollection.cs
- TranslateTransform3D.cs
- FileNotFoundException.cs
- ActivationServices.cs
- SupportsEventValidationAttribute.cs
- Keywords.cs
- TransformCryptoHandle.cs
- commandenforcer.cs
- RowToParametersTransformer.cs
- IndependentlyAnimatedPropertyMetadata.cs
- Attributes.cs
- SelectedDatesCollection.cs
- webeventbuffer.cs
- XmlDesignerDataSourceView.cs
- CodeTypeDeclarationCollection.cs
- HtmlObjectListAdapter.cs
- StreamingContext.cs
- DesignerDataRelationship.cs
- TemplateXamlParser.cs
- SoapIncludeAttribute.cs
- XmlResolver.cs
- _SafeNetHandles.cs
- EffectiveValueEntry.cs
- DtcInterfaces.cs
- MulticastDelegate.cs
- DbProviderFactories.cs
- NavigationProperty.cs
- ColumnWidthChangingEvent.cs
- WindowsAltTab.cs
- EventDescriptor.cs
- CatalogPartCollection.cs
- XPathArrayIterator.cs
- XmlReflectionMember.cs
- WindowsPrincipal.cs
- DiscoveryReference.cs
- AutomationEventArgs.cs
- ServiceMoniker.cs
- SelectQueryOperator.cs
- LoginUtil.cs
- GridItemCollection.cs
- ObjectSecurity.cs
- HwndTarget.cs
- FixUp.cs
- StaticContext.cs
- LongValidator.cs
- ModelServiceImpl.cs
- ObjectListCommandCollection.cs
- XmlLinkedNode.cs
- SymmetricKeyWrap.cs
- DiscoveryUtility.cs
- XmlCharCheckingWriter.cs
- DiscreteKeyFrames.cs
- ArcSegment.cs