Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / Net / System / Net / _NestedMultipleAsyncResult.cs / 1 / _NestedMultipleAsyncResult.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Net { // // The NestedAsyncResult - used to wrap async requests // this is used to hold another async result made // through a call to another Begin call within. // internal class NestedMultipleAsyncResult : LazyAsyncResult { // // this is usually for operations on streams/buffers, // we save information passed in on the Begin call: // since some calls might need several completions, we // need to save state on the user's IO request // internal BufferOffsetSize[] Buffers; internal int Size; // // Constructor: // internal NestedMultipleAsyncResult(Object asyncObject, Object asyncState, AsyncCallback asyncCallback, BufferOffsetSize[] buffers) : base( asyncObject, asyncState, asyncCallback ) { Buffers = buffers; Size = 0; for (int i = 0; i < Buffers.Length; i++) { Size += Buffers[i].Size; } } }; // class NestedMultipleAsyncResult } // namespace System.Net // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Net { // // The NestedAsyncResult - used to wrap async requests // this is used to hold another async result made // through a call to another Begin call within. // internal class NestedMultipleAsyncResult : LazyAsyncResult { // // this is usually for operations on streams/buffers, // we save information passed in on the Begin call: // since some calls might need several completions, we // need to save state on the user's IO request // internal BufferOffsetSize[] Buffers; internal int Size; // // Constructor: // internal NestedMultipleAsyncResult(Object asyncObject, Object asyncState, AsyncCallback asyncCallback, BufferOffsetSize[] buffers) : base( asyncObject, asyncState, asyncCallback ) { Buffers = buffers; Size = 0; for (int i = 0; i < Buffers.Length; i++) { Size += Buffers[i].Size; } } }; // class NestedMultipleAsyncResult } // namespace System.Net // 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
- URIFormatException.cs
- ReferenceService.cs
- XmlIncludeAttribute.cs
- SafeMILHandle.cs
- StandardOleMarshalObject.cs
- wgx_exports.cs
- ObjectView.cs
- PresentationAppDomainManager.cs
- UnsafeNativeMethods.cs
- SQLString.cs
- SessionEndingCancelEventArgs.cs
- AnnouncementDispatcherAsyncResult.cs
- DependencyPropertyChangedEventArgs.cs
- JournalEntryStack.cs
- BrowserCapabilitiesFactory.cs
- DataControlImageButton.cs
- DecoderBestFitFallback.cs
- WindowPatternIdentifiers.cs
- HttpApplicationFactory.cs
- CodeSubDirectoriesCollection.cs
- TemplateBamlTreeBuilder.cs
- BitVector32.cs
- OdbcStatementHandle.cs
- ColorConverter.cs
- Semaphore.cs
- CharacterHit.cs
- DispatchWrapper.cs
- TimeZone.cs
- objectquery_tresulttype.cs
- DataGridViewMethods.cs
- DeferredReference.cs
- CodeMethodReturnStatement.cs
- MetadataSource.cs
- SymbolDocumentGenerator.cs
- StatusBar.cs
- StateMachineExecutionState.cs
- Predicate.cs
- SamlConditions.cs
- IncrementalReadDecoders.cs
- DisposableCollectionWrapper.cs
- MainMenu.cs
- ParallelTimeline.cs
- GPPOINTF.cs
- WebPartMenuStyle.cs
- HttpCapabilitiesBase.cs
- DataServicePagingProviderWrapper.cs
- ObjectNavigationPropertyMapping.cs
- ControlCachePolicy.cs
- ManipulationDevice.cs
- EntityDataSourceValidationException.cs
- ChannelManager.cs
- HtmlValidatorAdapter.cs
- SQLDoubleStorage.cs
- DocobjHost.cs
- AdPostCacheSubstitution.cs
- DocumentOrderQuery.cs
- PriorityBinding.cs
- GeneralTransform2DTo3D.cs
- DesignerUtility.cs
- ResourceReferenceExpression.cs
- BinaryQueryOperator.cs
- ExecutionContext.cs
- Drawing.cs
- StandardToolWindows.cs
- XmlEnumAttribute.cs
- MsdtcWrapper.cs
- ImpersonateTokenRef.cs
- CmsInterop.cs
- ObjectPersistData.cs
- ReferentialConstraint.cs
- ProgressBarHighlightConverter.cs
- EntityConnectionStringBuilder.cs
- SystemWebSectionGroup.cs
- EntityKey.cs
- QilName.cs
- SqlInternalConnection.cs
- SamlAuthorityBinding.cs
- ObjectAnimationBase.cs
- ImpersonationContext.cs
- UserControlBuildProvider.cs
- MetadataArtifactLoaderResource.cs
- QilXmlWriter.cs
- UncommonField.cs
- listitem.cs
- TraceListener.cs
- DocumentApplication.cs
- TemplateControl.cs
- Image.cs
- _HTTPDateParse.cs
- ReadOnlyActivityGlyph.cs
- XmlMapping.cs
- UserControlAutomationPeer.cs
- X509CertificateCollection.cs
- Control.cs
- DataTemplateKey.cs
- ItemList.cs
- AspCompat.cs
- SrgsElementFactoryCompiler.cs
- WebBrowser.cs
- ProjectionPathSegment.cs