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
- OledbConnectionStringbuilder.cs
- TextLine.cs
- FlowPosition.cs
- MemoryFailPoint.cs
- UpdatePanelTriggerCollection.cs
- BitStack.cs
- AtomicFile.cs
- DataTable.cs
- InputProcessorProfiles.cs
- CreateUserErrorEventArgs.cs
- SqlWorkflowInstanceStoreLock.cs
- RtfFormatStack.cs
- WebControlsSection.cs
- ApplicationException.cs
- TextEditorCharacters.cs
- SelectionRange.cs
- BamlTreeNode.cs
- ArcSegment.cs
- EncoderBestFitFallback.cs
- BrowsableAttribute.cs
- LineServicesRun.cs
- Update.cs
- ViewBox.cs
- CacheForPrimitiveTypes.cs
- ConfigXmlText.cs
- AmbientLight.cs
- MimeTypeAttribute.cs
- RealizationContext.cs
- MemberDescriptor.cs
- XmlSchemaSimpleContentExtension.cs
- SqlRewriteScalarSubqueries.cs
- XmlSerializerNamespaces.cs
- SessionParameter.cs
- HasActivatableWorkflowEvent.cs
- CorrelationManager.cs
- DataServiceConfiguration.cs
- RichTextBox.cs
- OdbcConnectionHandle.cs
- CacheSection.cs
- XPathBinder.cs
- NetStream.cs
- MobileControl.cs
- RightsManagementSuppressedStream.cs
- SystemTcpStatistics.cs
- DataReaderContainer.cs
- HelloMessageApril2005.cs
- HostedNamedPipeTransportManager.cs
- GacUtil.cs
- PackageRelationshipCollection.cs
- DeflateEmulationStream.cs
- Debug.cs
- isolationinterop.cs
- TreeNodeConverter.cs
- Style.cs
- LocalFileSettingsProvider.cs
- MarkupExtensionParser.cs
- FileUtil.cs
- ErrorFormatter.cs
- HtmlContainerControl.cs
- ToolZone.cs
- CurrentChangingEventManager.cs
- ReferentialConstraint.cs
- EtwTrace.cs
- CompilerGlobalScopeAttribute.cs
- SimpleExpression.cs
- Point.cs
- Triangle.cs
- OdbcHandle.cs
- QilInvoke.cs
- CompiledXpathExpr.cs
- JsonFormatReaderGenerator.cs
- ModelItemCollection.cs
- AttachInfo.cs
- XmlImplementation.cs
- ShaderEffect.cs
- EntityContainerRelationshipSetEnd.cs
- TryExpression.cs
- OperationInfoBase.cs
- Menu.cs
- ScopeCompiler.cs
- RoutedCommand.cs
- DataObjectPastingEventArgs.cs
- ReliableSessionBindingElement.cs
- VarRemapper.cs
- EarlyBoundInfo.cs
- ExpandSegment.cs
- GridViewAutomationPeer.cs
- InstallerTypeAttribute.cs
- TdsParserStaticMethods.cs
- BadImageFormatException.cs
- SrgsToken.cs
- WorkflowDebuggerSteppingAttribute.cs
- Assert.cs
- PageRanges.cs
- FormDesigner.cs
- XmlHierarchicalDataSourceView.cs
- NameValueSectionHandler.cs
- StylusPointPropertyInfoDefaults.cs
- CapabilitiesUse.cs
- Adorner.cs