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
- IDReferencePropertyAttribute.cs
- StylusPlugInCollection.cs
- XhtmlConformanceSection.cs
- SqlRemoveConstantOrderBy.cs
- Column.cs
- CounterCreationDataCollection.cs
- UpDownEvent.cs
- CLSCompliantAttribute.cs
- ColumnCollectionEditor.cs
- Utils.cs
- PropertyGeneratedEventArgs.cs
- CapabilitiesAssignment.cs
- SchemaElementDecl.cs
- TextTrailingCharacterEllipsis.cs
- Mapping.cs
- NetworkStream.cs
- JournalEntry.cs
- SerializationHelper.cs
- ActivityBindForm.cs
- Constraint.cs
- ValueTypeFixupInfo.cs
- CaseKeyBox.xaml.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- ResourceSetExpression.cs
- PropertyGridView.cs
- EventItfInfo.cs
- StrongNamePublicKeyBlob.cs
- IntegerValidatorAttribute.cs
- PolyBezierSegment.cs
- CompressedStack.cs
- AssemblyName.cs
- MemberDescriptor.cs
- XmlAttributeOverrides.cs
- SqlDependencyListener.cs
- ContextQuery.cs
- XmlSerializerFactory.cs
- ListViewTableCell.cs
- GridViewRow.cs
- OutputCacheProfile.cs
- CreateUserErrorEventArgs.cs
- DataGridViewCellStyleConverter.cs
- XmlNodeChangedEventManager.cs
- CommandHelpers.cs
- HandoffBehavior.cs
- PKCS1MaskGenerationMethod.cs
- NullableConverter.cs
- IsolatedStorage.cs
- TraceSection.cs
- NCryptSafeHandles.cs
- NotCondition.cs
- ThreadStaticAttribute.cs
- Int32AnimationUsingKeyFrames.cs
- ContentPlaceHolderDesigner.cs
- ExceptionHandler.cs
- SchemaImporterExtension.cs
- XmlLinkedNode.cs
- Codec.cs
- GregorianCalendar.cs
- ClipboardData.cs
- ConfigurationPermission.cs
- DrawingContextDrawingContextWalker.cs
- UnsafeNativeMethodsPenimc.cs
- DesignerTransactionCloseEvent.cs
- SqlInternalConnectionSmi.cs
- ProfileSettingsCollection.cs
- EncoderReplacementFallback.cs
- SiteMapNodeItem.cs
- PreservationFileReader.cs
- WebBrowserBase.cs
- VisualBrush.cs
- WebPartDisplayModeCancelEventArgs.cs
- ImmutableObjectAttribute.cs
- InstanceLockLostException.cs
- IFormattable.cs
- ErrorHandler.cs
- InvalidComObjectException.cs
- TransactionManager.cs
- BatchStream.cs
- Button.cs
- AbstractExpressions.cs
- DataGridViewRowsAddedEventArgs.cs
- EditorPartChrome.cs
- ADMembershipProvider.cs
- IODescriptionAttribute.cs
- FunctionImportElement.cs
- CategoryNameCollection.cs
- AssemblyResourceLoader.cs
- ClientEventManager.cs
- NamespaceQuery.cs
- WinCategoryAttribute.cs
- VirtualDirectoryMappingCollection.cs
- HttpRuntime.cs
- ComboBox.cs
- LogEntryHeaderDeserializer.cs
- DataPagerFieldCommandEventArgs.cs
- GenericParameterDataContract.cs
- NodeFunctions.cs
- CustomAssemblyResolver.cs
- ConfigurationConverterBase.cs
- EncryptedKey.cs