Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SiteMapSection.cs
- WebServiceHostFactory.cs
- ClientRuntimeConfig.cs
- PathFigure.cs
- XmlArrayItemAttribute.cs
- XamlReader.cs
- WebPartAddingEventArgs.cs
- TextElementEditingBehaviorAttribute.cs
- XmlSchemaFacet.cs
- CoTaskMemHandle.cs
- InvalidComObjectException.cs
- TreeNodeBindingDepthConverter.cs
- ObjectViewQueryResultData.cs
- EtwTrackingParticipant.cs
- ComponentSerializationService.cs
- Set.cs
- CannotUnloadAppDomainException.cs
- CodeCompileUnit.cs
- wgx_commands.cs
- SecurityHelper.cs
- RegistryExceptionHelper.cs
- WebBrowserNavigatedEventHandler.cs
- DateBoldEvent.cs
- StringFreezingAttribute.cs
- Renderer.cs
- Operator.cs
- ExceptionUtil.cs
- VisualBrush.cs
- SpeechRecognizer.cs
- AsymmetricKeyExchangeFormatter.cs
- SHA384Managed.cs
- PKCS1MaskGenerationMethod.cs
- EncoderBestFitFallback.cs
- sitestring.cs
- DragEvent.cs
- DataListItem.cs
- HandleScope.cs
- LabelTarget.cs
- ResourceContainer.cs
- SqlDataSourceCustomCommandPanel.cs
- SchemaNames.cs
- TransformedBitmap.cs
- XmlLangPropertyAttribute.cs
- AssemblyAssociatedContentFileAttribute.cs
- GridViewUpdatedEventArgs.cs
- ToolStripDropDownClosedEventArgs.cs
- PrtTicket_Public.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- OrderToken.cs
- Compress.cs
- Transform3DGroup.cs
- DbgUtil.cs
- NotifyInputEventArgs.cs
- ParentControlDesigner.cs
- HttpPostedFileBase.cs
- DecimalAnimationUsingKeyFrames.cs
- DesignerOptionService.cs
- Int32.cs
- SimpleBitVector32.cs
- ClientTargetCollection.cs
- MyContact.cs
- CollectionViewProxy.cs
- XomlCompiler.cs
- ModelUIElement3D.cs
- XmlAttributeOverrides.cs
- EntityStoreSchemaFilterEntry.cs
- X509RecipientCertificateServiceElement.cs
- DocumentViewerBaseAutomationPeer.cs
- InkPresenterAutomationPeer.cs
- LineProperties.cs
- RegexNode.cs
- QilStrConcat.cs
- EtwTrackingBehaviorElement.cs
- MethodSignatureGenerator.cs
- Soap12ProtocolImporter.cs
- FreeFormDesigner.cs
- NavigationPropertyEmitter.cs
- BeginEvent.cs
- ContentWrapperAttribute.cs
- SortKey.cs
- EncryptedPackageFilter.cs
- WS2007FederationHttpBinding.cs
- BoolExpr.cs
- XmlWriter.cs
- Debug.cs
- OutKeywords.cs
- SubtreeProcessor.cs
- DependentList.cs
- CodeVariableReferenceExpression.cs
- ListView.cs
- CaseInsensitiveComparer.cs
- ZipIOModeEnforcingStream.cs
- AssemblyGen.cs
- BitmapPalette.cs
- Point4D.cs
- TransformProviderWrapper.cs
- StatusStrip.cs
- ServiceOperationParameter.cs
- SrgsElementList.cs
- MimeBasePart.cs