Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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 // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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 // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlQueryType.cs
- PolicyValidationException.cs
- XPathDocumentBuilder.cs
- RegionInfo.cs
- ServiceOperation.cs
- SmiEventStream.cs
- XmlLinkedNode.cs
- ContainerUIElement3D.cs
- X509Chain.cs
- RawStylusInput.cs
- streamingZipPartStream.cs
- FormsAuthenticationEventArgs.cs
- RepeaterCommandEventArgs.cs
- ConfigurationValue.cs
- DefinitionProperties.cs
- DataControlFieldHeaderCell.cs
- BrowserInteropHelper.cs
- odbcmetadatacolumnnames.cs
- RenderDataDrawingContext.cs
- log.cs
- SystemIPv4InterfaceProperties.cs
- MachineKeySection.cs
- CacheMode.cs
- AutomationIdentifierGuids.cs
- TabControlAutomationPeer.cs
- SqlUtil.cs
- WindowsSecurityToken.cs
- ListBindableAttribute.cs
- DynamicValueConverter.cs
- AncillaryOps.cs
- UInt16.cs
- ParameterCollection.cs
- SparseMemoryStream.cs
- Attributes.cs
- Cursors.cs
- MethodCallConverter.cs
- X509ChainElement.cs
- SqlInternalConnectionSmi.cs
- ConsumerConnectionPointCollection.cs
- CustomErrorsSectionWrapper.cs
- DrawingGroup.cs
- HostProtectionPermission.cs
- RSAOAEPKeyExchangeDeformatter.cs
- FileEnumerator.cs
- ExceptionUtil.cs
- DataGridRowHeaderAutomationPeer.cs
- GrowingArray.cs
- FlowDocument.cs
- IncrementalReadDecoders.cs
- SplitterDesigner.cs
- WindowsListViewGroupSubsetLink.cs
- SingleQueryOperator.cs
- WindowsListViewItemStartMenu.cs
- SmiRequestExecutor.cs
- altserialization.cs
- FactoryId.cs
- OutputCacheSettings.cs
- ContextMenuStrip.cs
- OdbcParameterCollection.cs
- WebServiceHandler.cs
- DocumentGridContextMenu.cs
- Rectangle.cs
- HttpPostedFile.cs
- CodeIdentifiers.cs
- ProcessDesigner.cs
- PersonalizableAttribute.cs
- DeadCharTextComposition.cs
- NotifyParentPropertyAttribute.cs
- AvtEvent.cs
- ProcessActivityTreeOptions.cs
- Rights.cs
- CopyAttributesAction.cs
- DiscoveryInnerClientAdhoc11.cs
- StrongNameIdentityPermission.cs
- SettingsBindableAttribute.cs
- EtwTrace.cs
- TextSelection.cs
- _SSPISessionCache.cs
- ColorTransformHelper.cs
- control.ime.cs
- WebServiceParameterData.cs
- ListItem.cs
- BinaryMethodMessage.cs
- ThreadPool.cs
- SequentialWorkflowHeaderFooter.cs
- ValidationResult.cs
- KeyMatchBuilder.cs
- Restrictions.cs
- RunClient.cs
- UpdatePanelTriggerCollection.cs
- DataGridViewComboBoxColumnDesigner.cs
- ColorInterpolationModeValidation.cs
- PhonemeConverter.cs
- GPRECT.cs
- SimpleType.cs
- XmlSchemaExternal.cs
- CFGGrammar.cs
- FileUtil.cs
- TextEditorMouse.cs
- LinkGrep.cs