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
- Marshal.cs
- Quaternion.cs
- ItemsControl.cs
- WebReferenceCollection.cs
- PersonalizationStateQuery.cs
- LifetimeServices.cs
- MeasureData.cs
- AttachmentService.cs
- SafeEventLogWriteHandle.cs
- SamlSecurityTokenAuthenticator.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- ListViewItemSelectionChangedEvent.cs
- COM2IPerPropertyBrowsingHandler.cs
- StatusBarDrawItemEvent.cs
- BoolExpression.cs
- TraceContextRecord.cs
- Console.cs
- IndexerNameAttribute.cs
- DecoderReplacementFallback.cs
- WindowsIdentity.cs
- XamlFigureLengthSerializer.cs
- WindowsRegion.cs
- Cursors.cs
- xmlformatgeneratorstatics.cs
- GenericWebPart.cs
- ContactManager.cs
- Panel.cs
- SkinBuilder.cs
- PriorityChain.cs
- BitmapSourceSafeMILHandle.cs
- ToolStripGripRenderEventArgs.cs
- QualifiedCellIdBoolean.cs
- EntityViewGenerationAttribute.cs
- DataGridViewTopRowAccessibleObject.cs
- WSDualHttpSecurity.cs
- EnumBuilder.cs
- SyndicationDeserializer.cs
- MultipartIdentifier.cs
- SafeNativeMethods.cs
- AttributeParameterInfo.cs
- TabControl.cs
- XmlAnyElementAttribute.cs
- BamlWriter.cs
- EditorPartChrome.cs
- LinkedResource.cs
- TypedAsyncResult.cs
- ExpressionBuilder.cs
- SoapFormatter.cs
- SchemaNames.cs
- ImageCodecInfo.cs
- Authorization.cs
- ExpandSegment.cs
- XamlWrapperReaders.cs
- ViewBase.cs
- DataGridViewHeaderCell.cs
- DataGridViewRowStateChangedEventArgs.cs
- StrokeNodeEnumerator.cs
- TextModifier.cs
- FixedPosition.cs
- ModifiableIteratorCollection.cs
- ResizeGrip.cs
- ConnectionsZone.cs
- InheritanceRules.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- TreeBuilder.cs
- SmtpReplyReader.cs
- PersonalizationStateInfoCollection.cs
- DecoderFallback.cs
- Dump.cs
- UTF7Encoding.cs
- ApplicationException.cs
- DataGridViewTextBoxColumn.cs
- ApplicationHost.cs
- RotateTransform.cs
- StreamGeometry.cs
- SatelliteContractVersionAttribute.cs
- FakeModelItemImpl.cs
- PrimitiveRenderer.cs
- _BaseOverlappedAsyncResult.cs
- ExtendedPropertyDescriptor.cs
- NetworkInformationPermission.cs
- DiscoveryClientDocuments.cs
- X509PeerCertificateAuthenticationElement.cs
- ReadOnlyMetadataCollection.cs
- RegistryKey.cs
- FactoryGenerator.cs
- CompressionTracing.cs
- CacheEntry.cs
- arc.cs
- DesignerHelpers.cs
- CollectionEditor.cs
- oledbconnectionstring.cs
- SystemIPGlobalStatistics.cs
- ApplicationException.cs
- AssemblyFilter.cs
- HttpHandlerAction.cs
- KeyboardNavigation.cs
- RelationshipWrapper.cs
- GeneralTransform3DGroup.cs
- ReadWriteSpinLock.cs