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
- ControlPaint.cs
- LambdaCompiler.ControlFlow.cs
- TextSelectionHelper.cs
- XmlBinaryWriterSession.cs
- RawKeyboardInputReport.cs
- ResolveCriteria.cs
- QueryableFilterUserControl.cs
- Mouse.cs
- HotCommands.cs
- AppSecurityManager.cs
- KeyConstraint.cs
- TableLayoutCellPaintEventArgs.cs
- PeerServiceMessageContracts.cs
- DesignerVerb.cs
- UInt32.cs
- FactoryGenerator.cs
- DiscoveryReferences.cs
- TemplateXamlParser.cs
- IgnoreFileBuildProvider.cs
- XmlKeywords.cs
- InternalBufferManager.cs
- WebRequestModuleElement.cs
- WindowsFormsHostAutomationPeer.cs
- ProfileGroupSettingsCollection.cs
- PopOutPanel.cs
- SqlCachedBuffer.cs
- ExpressionBuilder.cs
- XhtmlCssHandler.cs
- CheckBox.cs
- EntityDataSourceWizardForm.cs
- SecureEnvironment.cs
- ValueOfAction.cs
- SharedUtils.cs
- Control.cs
- FunctionImportElement.cs
- DataGridViewAccessibleObject.cs
- ContextMenuAutomationPeer.cs
- SiteMapHierarchicalDataSourceView.cs
- XmlSchemaComplexContentExtension.cs
- Label.cs
- ToolStripDropDownMenu.cs
- WebBrowserHelper.cs
- AlphabetConverter.cs
- ToolStripDropDown.cs
- EntityDataSourceWrapper.cs
- LinqToSqlWrapper.cs
- GeometryHitTestParameters.cs
- SymmetricSecurityProtocol.cs
- Timer.cs
- EnvironmentPermission.cs
- ObjectAnimationBase.cs
- RepeaterItemCollection.cs
- WeakReferenceKey.cs
- PartitionResolver.cs
- SiteMapPathDesigner.cs
- PageThemeBuildProvider.cs
- CodeVariableReferenceExpression.cs
- SoapServerMessage.cs
- XmlCharCheckingReader.cs
- ListSourceHelper.cs
- ComponentEvent.cs
- WasNotInstalledException.cs
- SoapIgnoreAttribute.cs
- DataError.cs
- XamlPathDataSerializer.cs
- DataObjectAttribute.cs
- DbConnectionPoolGroup.cs
- QuotedPairReader.cs
- PasswordPropertyTextAttribute.cs
- SerialReceived.cs
- TableRow.cs
- VisualTreeHelper.cs
- ZoneMembershipCondition.cs
- InputLanguageCollection.cs
- ToolStripSettings.cs
- XPathDocumentNavigator.cs
- ResourceExpressionBuilder.cs
- DataGridViewImageColumn.cs
- TopClause.cs
- SessionStateItemCollection.cs
- GlyphTypeface.cs
- TemplatedEditableDesignerRegion.cs
- PropertyChangedEventManager.cs
- State.cs
- LogicalExpr.cs
- MdbDataFileEditor.cs
- CodeLabeledStatement.cs
- QuaternionAnimation.cs
- EventToken.cs
- ServiceModelSectionGroup.cs
- sqlser.cs
- NTAccount.cs
- ToolStripContentPanel.cs
- WindowCollection.cs
- NativeRecognizer.cs
- ComponentSerializationService.cs
- ObjectDataSourceMethodEventArgs.cs
- URLBuilder.cs
- PropertyBuilder.cs
- HtmlTableCell.cs