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
- DispatcherExceptionFilterEventArgs.cs
- SqlOuterApplyReducer.cs
- Partitioner.cs
- DataGridItemCollection.cs
- Help.cs
- StylusSystemGestureEventArgs.cs
- ExpressionStringBuilder.cs
- RowsCopiedEventArgs.cs
- HiddenFieldPageStatePersister.cs
- ReachFixedPageSerializerAsync.cs
- StringUtil.cs
- DataFieldEditor.cs
- SharedStatics.cs
- WindowVisualStateTracker.cs
- ByteConverter.cs
- XmlElementCollection.cs
- InvalidPrinterException.cs
- WebPartConnectionsCloseVerb.cs
- GroupItemAutomationPeer.cs
- GenericTextProperties.cs
- TextureBrush.cs
- DocumentOrderQuery.cs
- IxmlLineInfo.cs
- rsa.cs
- DbInsertCommandTree.cs
- NetworkCredential.cs
- OdbcConnectionHandle.cs
- OdbcPermission.cs
- ServiceDescriptionImporter.cs
- MessageEnumerator.cs
- DependencyPropertyHelper.cs
- CodeRegionDirective.cs
- BCLDebug.cs
- ErrorWebPart.cs
- FixedTextSelectionProcessor.cs
- SafeLibraryHandle.cs
- TextServicesPropertyRanges.cs
- ImageMap.cs
- GenericXmlSecurityToken.cs
- prompt.cs
- HuffModule.cs
- HandleRef.cs
- CheckableControlBaseAdapter.cs
- CellCreator.cs
- NamespaceEmitter.cs
- SystemIPInterfaceStatistics.cs
- BStrWrapper.cs
- Int32Converter.cs
- DataServiceKeyAttribute.cs
- Size3DValueSerializer.cs
- Item.cs
- HttpGetServerProtocol.cs
- TriggerCollection.cs
- PageAdapter.cs
- DispatcherProcessingDisabled.cs
- StyleSheetDesigner.cs
- Page.cs
- WorkflowInstanceContextProvider.cs
- SoapBinding.cs
- LogRestartAreaEnumerator.cs
- SystemFonts.cs
- FrameworkTextComposition.cs
- FastEncoder.cs
- FileCodeGroup.cs
- FlatButtonAppearance.cs
- EntitySqlQueryBuilder.cs
- RotateTransform.cs
- DataServiceQueryOfT.cs
- DynamicResourceExtension.cs
- ReaderWriterLockWrapper.cs
- BasePattern.cs
- GetIndexBinder.cs
- ImageMapEventArgs.cs
- TextSpanModifier.cs
- figurelengthconverter.cs
- ProcessHostServerConfig.cs
- Util.cs
- WeakEventManager.cs
- RijndaelManaged.cs
- DataListCommandEventArgs.cs
- GPPOINT.cs
- BindableAttribute.cs
- PropertyValueUIItem.cs
- EmptyImpersonationContext.cs
- ImageFormat.cs
- AvTraceDetails.cs
- LinkedList.cs
- ObfuscateAssemblyAttribute.cs
- CreateUserWizard.cs
- ListViewInsertedEventArgs.cs
- DataGridViewCheckBoxCell.cs
- StrokeSerializer.cs
- ValueExpressions.cs
- GridViewCommandEventArgs.cs
- Contracts.cs
- TextBoxAutomationPeer.cs
- Exceptions.cs
- FunctionUpdateCommand.cs
- AxImporter.cs
- WeakReferenceKey.cs