Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ // 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
- ExtendedPropertyDescriptor.cs
- RegexMatchCollection.cs
- WindowsFormsEditorServiceHelper.cs
- JournalNavigationScope.cs
- AssociationTypeEmitter.cs
- RelatedPropertyManager.cs
- SHA384Managed.cs
- EdmToObjectNamespaceMap.cs
- ItemCheckedEvent.cs
- BuildResultCache.cs
- ColumnResizeUndoUnit.cs
- Identifier.cs
- DataList.cs
- ObjectQuery_EntitySqlExtensions.cs
- HandlerMappingMemo.cs
- PropertyChangedEventManager.cs
- SaveFileDialog.cs
- UInt16Converter.cs
- LogLogRecord.cs
- AnnotationResourceCollection.cs
- PartialTrustVisibleAssembliesSection.cs
- LinkedResourceCollection.cs
- EventMappingSettingsCollection.cs
- SerTrace.cs
- AssemblyInfo.cs
- SurrogateEncoder.cs
- DesignerSerializationOptionsAttribute.cs
- BitHelper.cs
- Point4D.cs
- CaseInsensitiveHashCodeProvider.cs
- AsynchronousChannel.cs
- XmlSchemaCompilationSettings.cs
- RelatedImageListAttribute.cs
- XmlSchemaGroup.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- SecurityState.cs
- HttpHandlerAction.cs
- FindCriteriaElement.cs
- ScaleTransform3D.cs
- BitmapDownload.cs
- HyperLinkStyle.cs
- MonthCalendar.cs
- COAUTHINFO.cs
- TransformPatternIdentifiers.cs
- ToolboxDataAttribute.cs
- FunctionNode.cs
- DataList.cs
- FunctionNode.cs
- VirtualPathUtility.cs
- FunctionDetailsReader.cs
- XmlSchemaAttributeGroupRef.cs
- EarlyBoundInfo.cs
- MissingMemberException.cs
- PropertyMetadata.cs
- ContentHostHelper.cs
- IPEndPoint.cs
- EntityContainerEmitter.cs
- SiteMembershipCondition.cs
- CalculatedColumn.cs
- RegexMatchCollection.cs
- PersonalizableTypeEntry.cs
- WindowsFormsHost.cs
- GroupItem.cs
- ClientScriptItemCollection.cs
- HtmlWindowCollection.cs
- CodeMethodInvokeExpression.cs
- XmlHelper.cs
- Shape.cs
- RequestUriProcessor.cs
- XmlMtomWriter.cs
- GeometryDrawing.cs
- FullTrustAssembly.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- InsufficientMemoryException.cs
- DNS.cs
- TreeViewItem.cs
- Window.cs
- XamlBuildProvider.cs
- ServiceModelDictionary.cs
- DirectoryRootQuery.cs
- log.cs
- StopStoryboard.cs
- ADConnectionHelper.cs
- FloatAverageAggregationOperator.cs
- ProviderBase.cs
- DropSource.cs
- ParameterBuilder.cs
- ToolStripItemClickedEventArgs.cs
- EditorAttribute.cs
- DbDataAdapter.cs
- UnmanagedBitmapWrapper.cs
- HttpWebRequest.cs
- unsafeIndexingFilterStream.cs
- ResXFileRef.cs
- RoutedEventValueSerializer.cs
- FontDialog.cs
- BeginStoryboard.cs
- VisualStateManager.cs
- HtmlTitle.cs
- DragSelectionMessageFilter.cs