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
- SpotLight.cs
- StylusCaptureWithinProperty.cs
- CompositeScriptReference.cs
- SHA384.cs
- MemoryPressure.cs
- ServiceXNameTypeConverter.cs
- DataSetMappper.cs
- MarkupObject.cs
- CollectionBuilder.cs
- DrawingDrawingContext.cs
- DataRowComparer.cs
- WebSysDefaultValueAttribute.cs
- UrlEncodedParameterWriter.cs
- XamlPointCollectionSerializer.cs
- SystemIcons.cs
- KeyManager.cs
- MD5CryptoServiceProvider.cs
- AccessDataSourceView.cs
- BackgroundFormatInfo.cs
- OdbcConnectionPoolProviderInfo.cs
- DataTableReader.cs
- HMACMD5.cs
- MetadataPropertyvalue.cs
- ScrollItemProviderWrapper.cs
- ClientSettings.cs
- ClientRolePrincipal.cs
- ConfigXmlSignificantWhitespace.cs
- PermissionSetEnumerator.cs
- UriSectionData.cs
- AutomationFocusChangedEventArgs.cs
- WebBrowserContainer.cs
- FileReservationCollection.cs
- RMEnrollmentPage3.cs
- DesignerSerializationVisibilityAttribute.cs
- XmlCDATASection.cs
- SqlHelper.cs
- Soap.cs
- FieldToken.cs
- EntityProviderFactory.cs
- ProvidePropertyAttribute.cs
- SingleAnimation.cs
- CollectionView.cs
- OpCellTreeNode.cs
- EnvelopedPkcs7.cs
- LocatorGroup.cs
- panel.cs
- DataGridHeaderBorder.cs
- PrintController.cs
- MimeXmlImporter.cs
- MenuItemStyleCollection.cs
- BaseWebProxyFinder.cs
- BindingRestrictions.cs
- ItemCollection.cs
- AppearanceEditorPart.cs
- KeyProperty.cs
- PropertyStore.cs
- AccessedThroughPropertyAttribute.cs
- XmlSubtreeReader.cs
- DataServiceExpressionVisitor.cs
- ReflectEventDescriptor.cs
- MaterialGroup.cs
- CategoryAttribute.cs
- ApplicationActivator.cs
- CodeParameterDeclarationExpression.cs
- ConvertTextFrag.cs
- AccessViolationException.cs
- DataGridViewButtonCell.cs
- AuthStoreRoleProvider.cs
- SemaphoreSlim.cs
- XamlVector3DCollectionSerializer.cs
- PasswordPropertyTextAttribute.cs
- TypeInfo.cs
- TraceListeners.cs
- FSWPathEditor.cs
- KoreanCalendar.cs
- MemoryPressure.cs
- ManagementDateTime.cs
- GAC.cs
- OleStrCAMarshaler.cs
- RegistryKey.cs
- EdmFunction.cs
- UpDownEvent.cs
- DataPointer.cs
- DbDataAdapter.cs
- Set.cs
- ExpandCollapseProviderWrapper.cs
- CodeConditionStatement.cs
- AffineTransform3D.cs
- XmlHierarchyData.cs
- KeyTimeConverter.cs
- EllipseGeometry.cs
- DataSourceHelper.cs
- ImageListImage.cs
- WorkflowEnvironment.cs
- Compiler.cs
- ActiveDocumentEvent.cs
- ToolStripSystemRenderer.cs
- HttpWriter.cs
- FileDataSourceCache.cs
- ContourSegment.cs