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
- SubMenuStyle.cs
- ContentDesigner.cs
- _SecureChannel.cs
- LoginUtil.cs
- LogArchiveSnapshot.cs
- WorkflowEnvironment.cs
- Vector3DCollection.cs
- MD5.cs
- TextFormatterImp.cs
- InProcStateClientManager.cs
- Canvas.cs
- Binding.cs
- WebHostedComPlusServiceHost.cs
- MailAddress.cs
- CodeAttributeDeclarationCollection.cs
- ItemsPanelTemplate.cs
- SpotLight.cs
- ResourceDescriptionAttribute.cs
- RootDesignerSerializerAttribute.cs
- OneOfScalarConst.cs
- RequestCacheValidator.cs
- ObjectViewEntityCollectionData.cs
- EntityDescriptor.cs
- DataSourceXmlElementAttribute.cs
- OrderingQueryOperator.cs
- GridViewColumnHeaderAutomationPeer.cs
- CallContext.cs
- SqlServer2KCompatibilityAnnotation.cs
- unsafenativemethodstextservices.cs
- _ConnectionGroup.cs
- TableRowGroupCollection.cs
- WebPartDisplayModeEventArgs.cs
- FloaterParagraph.cs
- BooleanSwitch.cs
- RSAOAEPKeyExchangeFormatter.cs
- PartialArray.cs
- TextRunCache.cs
- ProgressBarAutomationPeer.cs
- ConnectionPointConverter.cs
- MouseCaptureWithinProperty.cs
- ActivityPropertyReference.cs
- Bidi.cs
- ManagementQuery.cs
- RecommendedAsConfigurableAttribute.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- SecondaryIndexDefinition.cs
- NonVisualControlAttribute.cs
- TextTrailingCharacterEllipsis.cs
- ExtendedProtectionPolicy.cs
- TempEnvironment.cs
- EntitySqlQueryState.cs
- ProjectionPruner.cs
- DefaultParameterValueAttribute.cs
- InvalidComObjectException.cs
- ParagraphResult.cs
- XmlDocumentFragment.cs
- ByteAnimation.cs
- BulletChrome.cs
- ActiveXContainer.cs
- XmlSchemaAnyAttribute.cs
- AssemblyUtil.cs
- ConfigurationValue.cs
- wgx_sdk_version.cs
- StreamReader.cs
- ResXResourceWriter.cs
- ClientConfigPaths.cs
- PagesSection.cs
- ExclusiveTcpListener.cs
- ControlTemplate.cs
- RepeaterDesigner.cs
- HMACSHA384.cs
- ApplicationSecurityInfo.cs
- ObjectReaderCompiler.cs
- XD.cs
- SystemSounds.cs
- NonParentingControl.cs
- PenLineCapValidation.cs
- ConnectionStringsSection.cs
- HeaderLabel.cs
- MergablePropertyAttribute.cs
- TabItemAutomationPeer.cs
- panel.cs
- ListView.cs
- DataGridCell.cs
- TableCell.cs
- EventListener.cs
- TypeHelper.cs
- LockCookie.cs
- XmlDataDocument.cs
- ControlType.cs
- TypeBuilder.cs
- InputScope.cs
- CheckBoxList.cs
- TextFormatter.cs
- VScrollProperties.cs
- AttributeCollection.cs
- ControlCodeDomSerializer.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- RangeValuePattern.cs
- DocComment.cs