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
- TemplatingOptionsDialog.cs
- NameSpaceEvent.cs
- Resources.Designer.cs
- PowerStatus.cs
- SynchronizationContext.cs
- AnalyzedTree.cs
- MsmqIntegrationBinding.cs
- WrappedIUnknown.cs
- ObjectView.cs
- InheritanceAttribute.cs
- ToolStripRendererSwitcher.cs
- ThicknessConverter.cs
- OutputScopeManager.cs
- DataRowComparer.cs
- CompressEmulationStream.cs
- HeaderUtility.cs
- CharAnimationUsingKeyFrames.cs
- linebase.cs
- ListManagerBindingsCollection.cs
- StaticFileHandler.cs
- ApplicationFileCodeDomTreeGenerator.cs
- Propagator.Evaluator.cs
- SqlDataSource.cs
- DataGridViewButtonCell.cs
- Window.cs
- DynamicPropertyReader.cs
- SwitchExpression.cs
- CachedBitmap.cs
- PrintController.cs
- TypeForwardedToAttribute.cs
- EventLogPermission.cs
- VisualProxy.cs
- LocalizationComments.cs
- TextDecoration.cs
- TimeStampChecker.cs
- ClientSettingsProvider.cs
- ContainerAction.cs
- ConnectionInterfaceCollection.cs
- RepeaterCommandEventArgs.cs
- DbConnectionPoolIdentity.cs
- ClrProviderManifest.cs
- SspiSafeHandles.cs
- BuildProvider.cs
- HttpPostProtocolReflector.cs
- CallSiteHelpers.cs
- RoutedEventValueSerializer.cs
- WebPartPersonalization.cs
- TraceUtility.cs
- OneOfTypeConst.cs
- ValuePatternIdentifiers.cs
- RepeaterItem.cs
- JoinGraph.cs
- FunctionDefinition.cs
- PeerNameRecordCollection.cs
- HtmlHistory.cs
- UnsafeNativeMethods.cs
- HyperLink.cs
- DecimalConstantAttribute.cs
- CompilerWrapper.cs
- StructuredTypeInfo.cs
- TagPrefixAttribute.cs
- CompositeCollectionView.cs
- BufferedMessageData.cs
- EncryptedKey.cs
- ReaderOutput.cs
- Int16Converter.cs
- XmlEventCache.cs
- ImageListImage.cs
- GreenMethods.cs
- Vertex.cs
- ServiceObjectContainer.cs
- WindowsBrush.cs
- tooltip.cs
- RadialGradientBrush.cs
- FileDialogPermission.cs
- MailHeaderInfo.cs
- CompilerResults.cs
- ObjectDataSourceStatusEventArgs.cs
- PassportAuthenticationModule.cs
- CompilationLock.cs
- TextEncodedRawTextWriter.cs
- CanonicalFormWriter.cs
- CategoryGridEntry.cs
- ContactManager.cs
- MachinePropertyVariants.cs
- DBCommand.cs
- BitmapCodecInfo.cs
- ObjectStateManagerMetadata.cs
- ControllableStoryboardAction.cs
- ConvertEvent.cs
- StaticDataManager.cs
- RegexFCD.cs
- ReferenceConverter.cs
- FileSystemEnumerable.cs
- DefaultAutoFieldGenerator.cs
- DiscoveryOperationContext.cs
- GetWorkflowTree.cs
- AutomationPatternInfo.cs
- FrugalMap.cs
- RichTextBox.cs