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
- ComAdminInterfaces.cs
- DynamicControlParameter.cs
- PolicyStatement.cs
- ForeignKeyFactory.cs
- XmlBinaryReader.cs
- WebPartEditVerb.cs
- ListItemsCollectionEditor.cs
- PriorityQueue.cs
- DrawingDrawingContext.cs
- ContextCorrelationInitializer.cs
- CustomWebEventKey.cs
- ParamArrayAttribute.cs
- Latin1Encoding.cs
- FloatSumAggregationOperator.cs
- ContentType.cs
- _OverlappedAsyncResult.cs
- OleDbInfoMessageEvent.cs
- PathSegment.cs
- DataSourceControlBuilder.cs
- Site.cs
- LoginNameDesigner.cs
- objectresult_tresulttype.cs
- RangeBase.cs
- ControlCollection.cs
- UInt32Converter.cs
- BookmarkEventArgs.cs
- EventHandlersStore.cs
- AssemblySettingAttributes.cs
- Marshal.cs
- PhysicalOps.cs
- WindowsFormsEditorServiceHelper.cs
- SoapServerProtocol.cs
- mda.cs
- IUnknownConstantAttribute.cs
- TemplateControl.cs
- ConnectionOrientedTransportBindingElement.cs
- EntityContainerEmitter.cs
- UnmanagedMemoryStreamWrapper.cs
- XmlParser.cs
- _PooledStream.cs
- NonVisualControlAttribute.cs
- ButtonStandardAdapter.cs
- CAGDesigner.cs
- COM2Enum.cs
- SelectionListDesigner.cs
- HelpProvider.cs
- ThumbAutomationPeer.cs
- PipeStream.cs
- UndoUnit.cs
- SoapSchemaExporter.cs
- ListenerPerfCounters.cs
- GACMembershipCondition.cs
- SqlRewriteScalarSubqueries.cs
- HwndHost.cs
- DesignerForm.cs
- CultureTable.cs
- UriExt.cs
- FileUtil.cs
- ErrorRuntimeConfig.cs
- HyperLinkDesigner.cs
- KeyboardNavigation.cs
- ImageDrawing.cs
- DrawListViewItemEventArgs.cs
- GeneralTransform2DTo3D.cs
- _FtpDataStream.cs
- Comparer.cs
- Highlights.cs
- Number.cs
- SQLBinary.cs
- HttpCachePolicy.cs
- IsolatedStoragePermission.cs
- OrthographicCamera.cs
- MultiBindingExpression.cs
- HTTPNotFoundHandler.cs
- Activation.cs
- MinMaxParagraphWidth.cs
- HierarchicalDataBoundControl.cs
- _AutoWebProxyScriptWrapper.cs
- GetPageCompletedEventArgs.cs
- SiteMap.cs
- odbcmetadatafactory.cs
- HtmlTableCell.cs
- DurableOperationAttribute.cs
- SizeFConverter.cs
- Mappings.cs
- ByteFacetDescriptionElement.cs
- lengthconverter.cs
- XmlWellformedWriter.cs
- Parser.cs
- StrongNameKeyPair.cs
- SelectionUIHandler.cs
- Quad.cs
- Matrix3D.cs
- CorrelationInitializer.cs
- NavigationHelper.cs
- SubqueryRules.cs
- FontCacheLogic.cs
- ParameterBuilder.cs
- X509Utils.cs
- basevalidator.cs