Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / Log / System / IO / Log / LogAppendAsyncResult.cs / 1305376 / LogAppendAsyncResult.cs
//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
namespace System.IO.Log
{
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Security.Permissions;
using System.Threading;
using Microsoft.Win32.SafeHandles;
sealed class LogAppendAsyncResult : OverlappedAsyncResult
{
LogReserveAndAppendState state;
internal LogAppendAsyncResult(LogRecordSequence recordSequence,
AsyncCallback callback,
object state)
: base(callback, state)
{
this.state = new LogReserveAndAppendState();
this.state.RecordSequence = recordSequence;
this.state.AsyncResult = this;
}
//===========================================================
// Parameters
//===========================================================
internal IList> Data
{
/* get { return this.state.Data; } */
set { this.state.Data = value; }
}
internal ulong PreviousLsn
{
/* get { return this.state.PreviousLsn; } */
set { this.state.PreviousLsn = value; }
}
internal long[] Reservations
{
get { return this.state.Reservations; }
set { this.state.Reservations = value; }
}
internal LogReservationCollection ReservationCollection
{
/* get { return this.state.ReservationCollection; } */
set { this.state.ReservationCollection = value; }
}
internal long TotalRecordSize
{
/* get { return this.state.TotalRecordSize; } */
set { this.state.TotalRecordSize = value; }
}
internal ulong UserLsn
{
/* get { return this.state.UserLsn; } */
set { this.state.UserLsn = value; }
}
internal RecordAppendOptions RecordAppendOptions
{
/* get { return this.state.RecordAppendOptions; } */
set { this.state.RecordAppendOptions = value; }
}
//============================================================
// Result
//===========================================================
internal ulong ResultLsn
{
get { return this.state.ResultLsn; }
}
internal void Start()
{
this.state.Start();
}
internal override void IOCompleted(uint errorCode)
{
this.state.IOComplete(errorCode);
}
}
}
// 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
- MappingModelBuildProvider.cs
- EdmToObjectNamespaceMap.cs
- DirectoryObjectSecurity.cs
- DBConnectionString.cs
- FileSystemEnumerable.cs
- WebReference.cs
- DecoratedNameAttribute.cs
- ScriptReferenceEventArgs.cs
- SerialStream.cs
- PackageDigitalSignature.cs
- FrameworkContentElement.cs
- InstancePersistenceContext.cs
- QueryableDataSource.cs
- StringValidatorAttribute.cs
- Scripts.cs
- ProgressBar.cs
- LayoutUtils.cs
- NullReferenceException.cs
- ReflectionTypeLoadException.cs
- AppSettingsExpressionBuilder.cs
- NameTable.cs
- SqlConnectionStringBuilder.cs
- ImageDrawing.cs
- NullNotAllowedCollection.cs
- TraceSection.cs
- BorderGapMaskConverter.cs
- ObjectReaderCompiler.cs
- XmlSchemaAll.cs
- TextRange.cs
- TextParentUndoUnit.cs
- SqlFacetAttribute.cs
- DiscreteKeyFrames.cs
- QueryOperationResponseOfT.cs
- NotifyIcon.cs
- RelationshipDetailsCollection.cs
- HtmlEncodedRawTextWriter.cs
- TypeFieldSchema.cs
- ZoneMembershipCondition.cs
- COM2ComponentEditor.cs
- SspiWrapper.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- InfoCardKeyedHashAlgorithm.cs
- WindowsProgressbar.cs
- isolationinterop.cs
- SortAction.cs
- IntSecurity.cs
- DoubleAnimationUsingPath.cs
- DataGridHeaderBorder.cs
- FormsAuthentication.cs
- ViewStateModeByIdAttribute.cs
- TrackingRecordPreFilter.cs
- AutomationPatternInfo.cs
- CodeMethodReturnStatement.cs
- AlphabeticalEnumConverter.cs
- DataGridViewCellConverter.cs
- MenuItemAutomationPeer.cs
- SQLInt64Storage.cs
- AsyncResult.cs
- RegexWorker.cs
- XsltInput.cs
- RectAnimationUsingKeyFrames.cs
- BitmapFrameDecode.cs
- DebugView.cs
- RequestQueryParser.cs
- ConfigurationValidatorAttribute.cs
- EnumBuilder.cs
- Column.cs
- OdbcUtils.cs
- Track.cs
- Point3DAnimation.cs
- SystemException.cs
- Point4D.cs
- Application.cs
- PenContext.cs
- ContextQuery.cs
- UndirectedGraph.cs
- KeyInfo.cs
- SimpleWorkerRequest.cs
- InternalPermissions.cs
- SiteMapNode.cs
- ElementAtQueryOperator.cs
- UnsafeNativeMethods.cs
- StreamInfo.cs
- SelectionPattern.cs
- PropertyEmitter.cs
- XmlDataSourceNodeDescriptor.cs
- smtpconnection.cs
- RefExpr.cs
- XmlnsPrefixAttribute.cs
- SpecularMaterial.cs
- XmlReader.cs
- DrawListViewColumnHeaderEventArgs.cs
- AddIn.cs
- Vector.cs
- WindowsListViewScroll.cs
- GridItemProviderWrapper.cs
- BoolExpression.cs
- PathBox.cs
- BindUriHelper.cs
- NullableDecimalAverageAggregationOperator.cs