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
- XmlSchemaGroup.cs
- _NestedMultipleAsyncResult.cs
- SapiRecoInterop.cs
- wmiprovider.cs
- Int32Rect.cs
- HebrewNumber.cs
- ConstrainedDataObject.cs
- DEREncoding.cs
- DbProviderFactories.cs
- PerfCounters.cs
- TextBoxAutoCompleteSourceConverter.cs
- DataGridViewDataConnection.cs
- AppDomainGrammarProxy.cs
- DataObjectCopyingEventArgs.cs
- ExceptQueryOperator.cs
- ModifiableIteratorCollection.cs
- JobDuplex.cs
- PolyQuadraticBezierSegment.cs
- WsatTransactionHeader.cs
- IsolationInterop.cs
- SystemMulticastIPAddressInformation.cs
- PageParser.cs
- StringDictionary.cs
- EarlyBoundInfo.cs
- HtmlTableCell.cs
- MimeMapping.cs
- XDeferredAxisSource.cs
- SHA256Managed.cs
- SqlTrackingService.cs
- MarkedHighlightComponent.cs
- ObjectConverter.cs
- IncrementalCompileAnalyzer.cs
- TableProviderWrapper.cs
- MetadataSerializer.cs
- UnsafeNativeMethodsCLR.cs
- WebPartCancelEventArgs.cs
- SamlSecurityToken.cs
- InstanceOwnerException.cs
- ThrowHelper.cs
- XpsFilter.cs
- ViewBase.cs
- regiisutil.cs
- RichTextBoxConstants.cs
- Pair.cs
- Pair.cs
- ColorDialog.cs
- DbModificationCommandTree.cs
- PipelineModuleStepContainer.cs
- ProvidePropertyAttribute.cs
- XhtmlStyleClass.cs
- BrowserCapabilitiesCodeGenerator.cs
- IsolatedStorageException.cs
- WebBrowserUriTypeConverter.cs
- TableItemStyle.cs
- ValueType.cs
- IntSecurity.cs
- SqlCommandSet.cs
- LocalServiceSecuritySettingsElement.cs
- RadioButtonStandardAdapter.cs
- HideDisabledControlAdapter.cs
- FaultException.cs
- FolderBrowserDialog.cs
- InputElement.cs
- HwndAppCommandInputProvider.cs
- ConsumerConnectionPoint.cs
- SectionXmlInfo.cs
- SqlErrorCollection.cs
- DispatcherTimer.cs
- DSASignatureFormatter.cs
- BuildProviderUtils.cs
- SequentialWorkflowRootDesigner.cs
- ObjectItemCachedAssemblyLoader.cs
- WmlObjectListAdapter.cs
- ExceptionRoutedEventArgs.cs
- ThreadInterruptedException.cs
- DataPagerFieldCollection.cs
- TypeSystem.cs
- _Rfc2616CacheValidators.cs
- SamlConditions.cs
- UTF32Encoding.cs
- TemplateInstanceAttribute.cs
- DrawingVisualDrawingContext.cs
- CultureInfoConverter.cs
- IRCollection.cs
- DataService.cs
- ContainerVisual.cs
- Statements.cs
- PolyLineSegment.cs
- XmlSchemaInfo.cs
- Dump.cs
- ImmutableCollection.cs
- OperationPerformanceCounters.cs
- IdnElement.cs
- BasicKeyConstraint.cs
- StructureChangedEventArgs.cs
- Number.cs
- XmlSignatureProperties.cs
- OdbcRowUpdatingEvent.cs
- FormsAuthenticationConfiguration.cs
- TextBoxBase.cs