Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / Log / System / IO / Log / LogWriteRestartAreaAsyncResult.cs / 1305376 / LogWriteRestartAreaAsyncResult.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 LogWriteRestartAreaAsyncResult : OverlappedAsyncResult { LogWriteRestartAreaState state; internal LogWriteRestartAreaAsyncResult(LogRecordSequence recordSequence, AsyncCallback callback, object state) : base(callback, state) { this.state = new LogWriteRestartAreaState(); this.state.RecordSequence = recordSequence; this.state.AsyncResult = this; } //=========================================================== // Parameters //=========================================================== internal IList> Data { /* get { return this.state.Data; } */ set { this.state.Data = value; } } internal ulong NewBaseLsn { /* get { return this.state.NewBaseLsn; } */ set { this.state.NewBaseLsn = 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; } } //============================================================ // 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. //------------------------------------------------------------------------------ // 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 LogWriteRestartAreaAsyncResult : OverlappedAsyncResult { LogWriteRestartAreaState state; internal LogWriteRestartAreaAsyncResult(LogRecordSequence recordSequence, AsyncCallback callback, object state) : base(callback, state) { this.state = new LogWriteRestartAreaState(); this.state.RecordSequence = recordSequence; this.state.AsyncResult = this; } //=========================================================== // Parameters //=========================================================== internal IList > Data { /* get { return this.state.Data; } */ set { this.state.Data = value; } } internal ulong NewBaseLsn { /* get { return this.state.NewBaseLsn; } */ set { this.state.NewBaseLsn = 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; } } //============================================================ // 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
- SourceInterpreter.cs
- ConnectionOrientedTransportBindingElement.cs
- WindowsComboBox.cs
- Rotation3DAnimation.cs
- LocalValueEnumerator.cs
- ToolStripGripRenderEventArgs.cs
- BinarySerializer.cs
- brushes.cs
- FusionWrap.cs
- RoutedCommand.cs
- ClassicBorderDecorator.cs
- BeginEvent.cs
- ListViewPagedDataSource.cs
- DisplayMemberTemplateSelector.cs
- HttpModuleAction.cs
- TableItemStyle.cs
- NetPipeSectionData.cs
- ButtonFieldBase.cs
- TemplateBuilder.cs
- XmlCustomFormatter.cs
- PackWebResponse.cs
- ResolvedKeyFrameEntry.cs
- TiffBitmapDecoder.cs
- QuaternionAnimation.cs
- ExpressionQuoter.cs
- Visual3DCollection.cs
- PackageFilter.cs
- XmlWrappingReader.cs
- Trace.cs
- XmlnsCompatibleWithAttribute.cs
- StatusBarDesigner.cs
- safemediahandle.cs
- QueryAccessibilityHelpEvent.cs
- SQLDouble.cs
- StringConverter.cs
- ImageField.cs
- ExpressionStringBuilder.cs
- ClientType.cs
- DataGridTablesFactory.cs
- ProviderUtil.cs
- PageAsyncTaskManager.cs
- RuntimeDelegateArgument.cs
- Attribute.cs
- LinqDataSourceSelectEventArgs.cs
- DictionaryKeyPropertyAttribute.cs
- SqlCommandSet.cs
- AutomationPatternInfo.cs
- WinInetCache.cs
- AutomationElement.cs
- SelectionGlyphBase.cs
- RuntimeArgument.cs
- TypeContext.cs
- MetadataPropertyAttribute.cs
- ContextStaticAttribute.cs
- AttributeQuery.cs
- GridViewColumn.cs
- CommandManager.cs
- ValidationError.cs
- RoutedEventArgs.cs
- ActionFrame.cs
- WindowsTooltip.cs
- SupportsEventValidationAttribute.cs
- CodeIterationStatement.cs
- SqlMetaData.cs
- Line.cs
- X509ChainElement.cs
- QueryContinueDragEventArgs.cs
- TimersDescriptionAttribute.cs
- NativeBuffer.cs
- InlinedLocationReference.cs
- CriticalFinalizerObject.cs
- WindowClosedEventArgs.cs
- UInt64.cs
- Light.cs
- ConstructorBuilder.cs
- HttpHandlerActionCollection.cs
- XmlFileEditor.cs
- NativeMethods.cs
- LinqExpressionNormalizer.cs
- XmlDataProvider.cs
- TcpChannelFactory.cs
- CellIdBoolean.cs
- AutomationElementIdentifiers.cs
- CustomWebEventKey.cs
- XmlAttributeAttribute.cs
- AuthenticationModulesSection.cs
- Tuple.cs
- EmptyStringExpandableObjectConverter.cs
- WindowsToolbarAsMenu.cs
- TableParaClient.cs
- SerialPort.cs
- DataControlLinkButton.cs
- CheckBox.cs
- Misc.cs
- MetricEntry.cs
- SelectionProviderWrapper.cs
- XmlSchemaSimpleType.cs
- SchemaSetCompiler.cs
- _PooledStream.cs
- ImagingCache.cs