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
- DataListItemCollection.cs
- ScriptComponentDescriptor.cs
- SqlTriggerAttribute.cs
- PersistencePipeline.cs
- DbParameterCollectionHelper.cs
- LinkClickEvent.cs
- NamespaceEmitter.cs
- SQLGuidStorage.cs
- CommunicationException.cs
- TableColumn.cs
- UMPAttributes.cs
- SoapCodeExporter.cs
- TrustManagerPromptUI.cs
- BidPrivateBase.cs
- InputBindingCollection.cs
- WebPartsSection.cs
- TextRange.cs
- ChildrenQuery.cs
- ExpandSegmentCollection.cs
- MsdtcClusterUtils.cs
- ExternalException.cs
- TimeManager.cs
- DelimitedListTraceListener.cs
- SystemDiagnosticsSection.cs
- OdbcError.cs
- ViewBase.cs
- WebConfigurationManager.cs
- DesignerMetadata.cs
- WindowsBrush.cs
- InputScopeManager.cs
- DecoderReplacementFallback.cs
- FixedStringLookup.cs
- SerializerDescriptor.cs
- HttpCachePolicyBase.cs
- AssemblyInfo.cs
- AxisAngleRotation3D.cs
- Endpoint.cs
- PriorityChain.cs
- Metadata.cs
- HandlerWithFactory.cs
- ObjectStateManagerMetadata.cs
- CodeTryCatchFinallyStatement.cs
- MessageDecoder.cs
- StringCollection.cs
- PinnedBufferMemoryStream.cs
- ListViewItem.cs
- PenCursorManager.cs
- NumberFunctions.cs
- FileSecurity.cs
- _LazyAsyncResult.cs
- FillErrorEventArgs.cs
- Point3DCollectionValueSerializer.cs
- WebFaultClientMessageInspector.cs
- WSAddressing10ProblemHeaderQNameFault.cs
- CodeObjectCreateExpression.cs
- Evidence.cs
- XmlNodeList.cs
- XmlSchemaFacet.cs
- GacUtil.cs
- AutomationPattern.cs
- ChangeConflicts.cs
- TokenBasedSetEnumerator.cs
- EastAsianLunisolarCalendar.cs
- Merger.cs
- TrackBar.cs
- ParserHooks.cs
- TextDecorations.cs
- MimeMultiPart.cs
- ECDsa.cs
- DesignTimeParseData.cs
- OdbcException.cs
- HttpException.cs
- KeyValuePair.cs
- BuildResultCache.cs
- BitmapPalettes.cs
- safemediahandle.cs
- StreamMarshaler.cs
- EntityKeyElement.cs
- ThreadNeutralSemaphore.cs
- ThreadExceptionEvent.cs
- StorageMappingItemLoader.cs
- TypeFieldSchema.cs
- LoadMessageLogger.cs
- HttpCacheVary.cs
- TransformProviderWrapper.cs
- ColumnCollection.cs
- PrivilegeNotHeldException.cs
- OlePropertyStructs.cs
- ProviderConnectionPoint.cs
- SystemIcmpV6Statistics.cs
- HelpProvider.cs
- HashSetDebugView.cs
- NumberSubstitution.cs
- ActivationServices.cs
- BreakRecordTable.cs
- ApplicationManager.cs
- WindowInteractionStateTracker.cs
- EventProviderWriter.cs
- StringFormat.cs
- CategoryNameCollection.cs