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
- ScopelessEnumAttribute.cs
- TextEvent.cs
- MutableAssemblyCacheEntry.cs
- DashStyle.cs
- OpenFileDialog.cs
- SerialStream.cs
- UriScheme.cs
- DBPropSet.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- ModelFunction.cs
- Misc.cs
- Debug.cs
- NCryptSafeHandles.cs
- CommonObjectSecurity.cs
- BindingGroup.cs
- QilPatternVisitor.cs
- FixedSOMGroup.cs
- BitmapInitialize.cs
- MessageQueueAccessControlEntry.cs
- FlowSwitch.cs
- UriWriter.cs
- MultiSelector.cs
- DataConnectionHelper.cs
- Cloud.cs
- ArrayElementGridEntry.cs
- TextRunCache.cs
- Material.cs
- XhtmlBasicFormAdapter.cs
- ExtensionQuery.cs
- XMLUtil.cs
- XmlSchemaDatatype.cs
- SimpleTypeResolver.cs
- ProxyWebPartConnectionCollection.cs
- metadatamappinghashervisitor.cs
- AttributeXamlType.cs
- SafePointer.cs
- EditorPartCollection.cs
- RuntimeHandles.cs
- DeleteStoreRequest.cs
- FlowDocumentPageViewerAutomationPeer.cs
- ApplicationGesture.cs
- HttpCookiesSection.cs
- PersonalizationState.cs
- ArgIterator.cs
- HtmlHistory.cs
- ReachSerializationCacheItems.cs
- Operator.cs
- JumpTask.cs
- Rectangle.cs
- BasicExpandProvider.cs
- CodeAssignStatement.cs
- EndpointAddressProcessor.cs
- CounterSampleCalculator.cs
- BuildProviderCollection.cs
- DateTimeAutomationPeer.cs
- AudioStateChangedEventArgs.cs
- PageEventArgs.cs
- CompiledRegexRunnerFactory.cs
- MonthChangedEventArgs.cs
- UpDownBase.cs
- ContractMapping.cs
- GridViewColumnHeader.cs
- Rotation3D.cs
- AnnotationResourceCollection.cs
- SqlRowUpdatedEvent.cs
- XmlILCommand.cs
- BrowserCapabilitiesFactory.cs
- GPRECTF.cs
- BooleanFacetDescriptionElement.cs
- FileNameEditor.cs
- XmlDocument.cs
- DesignerActionItemCollection.cs
- AnimationStorage.cs
- TreeChangeInfo.cs
- TriggerActionCollection.cs
- UserPreferenceChangingEventArgs.cs
- QilFunction.cs
- LinkClickEvent.cs
- GeometryHitTestParameters.cs
- SequenceDesigner.cs
- XmlObjectSerializerReadContextComplexJson.cs
- SymbolEqualComparer.cs
- localization.cs
- BoolExpr.cs
- RoleGroupCollection.cs
- WinInetCache.cs
- DtdParser.cs
- TextTreeRootTextBlock.cs
- TemplateFactory.cs
- UriExt.cs
- TrackBar.cs
- X509CertificateValidationMode.cs
- MtomMessageEncodingBindingElement.cs
- BoolExpr.cs
- TimeBoundedCache.cs
- ConnectionConsumerAttribute.cs
- HtmlTableCell.cs
- XamlClipboardData.cs
- EntityViewGenerator.cs
- FileChangesMonitor.cs