Code:
/ FX-1434 / FX-1434 / 1.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
- Encoding.cs
- CustomSignedXml.cs
- BrowsableAttribute.cs
- ErrorFormatter.cs
- IndexingContentUnit.cs
- FixedStringLookup.cs
- Point3DIndependentAnimationStorage.cs
- HtmlFormWrapper.cs
- TextRunTypographyProperties.cs
- StylusPointCollection.cs
- ManifestResourceInfo.cs
- AuthenticationConfig.cs
- Activity.cs
- BooleanProjectedSlot.cs
- WebPartConnection.cs
- SoapHeaderException.cs
- ExcludeFromCodeCoverageAttribute.cs
- CodeDOMProvider.cs
- EntityDataSourceState.cs
- BasicCommandTreeVisitor.cs
- Exceptions.cs
- TextDecorationUnitValidation.cs
- AutoGeneratedFieldProperties.cs
- SourceFileBuildProvider.cs
- Underline.cs
- WebPartUserCapability.cs
- AxHost.cs
- ValueSerializer.cs
- MobileUserControl.cs
- FormViewRow.cs
- TextReturnReader.cs
- SqlTypeSystemProvider.cs
- StringBuilder.cs
- XmlSchemaComplexContentExtension.cs
- ResourceSet.cs
- ButtonBaseAdapter.cs
- DelegateSerializationHolder.cs
- OrderedDictionary.cs
- ObjectStateManager.cs
- SharedConnectionInfo.cs
- InkCanvasFeedbackAdorner.cs
- TextCompositionManager.cs
- SimpleBitVector32.cs
- ExtensibleSyndicationObject.cs
- AttributeUsageAttribute.cs
- StorageMappingItemCollection.cs
- ParameterReplacerVisitor.cs
- FixedSOMLineCollection.cs
- BevelBitmapEffect.cs
- WebEncodingValidatorAttribute.cs
- WindowsStartMenu.cs
- SecurityProtocol.cs
- ConnectionProviderAttribute.cs
- ItemsChangedEventArgs.cs
- HiddenFieldPageStatePersister.cs
- ResourceReader.cs
- ObjectToken.cs
- ConfigXmlSignificantWhitespace.cs
- _NestedSingleAsyncResult.cs
- TransformProviderWrapper.cs
- ProgressChangedEventArgs.cs
- BooleanConverter.cs
- EdmFunction.cs
- LingerOption.cs
- Utility.cs
- XmlSchemas.cs
- ValidationSummaryDesigner.cs
- HttpRawResponse.cs
- FontFamily.cs
- ButtonFieldBase.cs
- FlatButtonAppearance.cs
- WizardStepBase.cs
- HMACMD5.cs
- Parameter.cs
- NameTable.cs
- Oid.cs
- VisualTarget.cs
- ListSourceHelper.cs
- FacetEnabledSchemaElement.cs
- Assert.cs
- OdbcErrorCollection.cs
- WinInet.cs
- LiteralControl.cs
- GenericUI.cs
- AdRotator.cs
- EntityTransaction.cs
- ConstraintCollection.cs
- GrowingArray.cs
- FormsAuthenticationModule.cs
- RepeaterItem.cs
- EdmProperty.cs
- IResourceProvider.cs
- AngleUtil.cs
- GeometryDrawing.cs
- DelegateBodyWriter.cs
- RegexInterpreter.cs
- ContextInformation.cs
- Camera.cs
- EditorBrowsableAttribute.cs
- GridViewColumnHeader.cs