Code:
/ DotNET / DotNET / 8.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
- TreeViewAutomationPeer.cs
- MembershipSection.cs
- TextDocumentView.cs
- TextBoxBase.cs
- WebConfigurationHostFileChange.cs
- EntityCommandCompilationException.cs
- JsonFormatGeneratorStatics.cs
- ProcessHostConfigUtils.cs
- Compress.cs
- LinkArea.cs
- RestHandler.cs
- ErrorFormatterPage.cs
- ComNativeDescriptor.cs
- DotExpr.cs
- BlurEffect.cs
- GacUtil.cs
- PrefixHandle.cs
- AutomationPropertyInfo.cs
- EntityDataSourceMemberPath.cs
- ImageInfo.cs
- MetadataSet.cs
- KeyboardEventArgs.cs
- SingleSelectRootGridEntry.cs
- AssemblySettingAttributes.cs
- ReflectTypeDescriptionProvider.cs
- AsyncResult.cs
- HMACMD5.cs
- Geometry.cs
- DynamicDataRoute.cs
- MessageSmuggler.cs
- PageSetupDialog.cs
- HttpClientCertificate.cs
- DetailsViewModeEventArgs.cs
- DataAdapter.cs
- OdbcUtils.cs
- RecognizeCompletedEventArgs.cs
- LayoutDump.cs
- RijndaelManagedTransform.cs
- GridEntryCollection.cs
- UTF7Encoding.cs
- XmlSchemaAnnotation.cs
- mactripleDES.cs
- AuthorizationPolicyTypeElementCollection.cs
- SystemColorTracker.cs
- MenuItemBindingCollection.cs
- ByteAnimationBase.cs
- CodeNamespace.cs
- WarningException.cs
- EventHandlerList.cs
- DateTime.cs
- GetWinFXPath.cs
- HyperLink.cs
- LayoutEngine.cs
- SoapFormatExtensions.cs
- PathFigureCollection.cs
- SqlGatherProducedAliases.cs
- SafeRightsManagementEnvironmentHandle.cs
- InputScope.cs
- ParameterCollectionEditor.cs
- __ComObject.cs
- StylusPointProperties.cs
- QilStrConcat.cs
- BitmapEffectInput.cs
- OleDbStruct.cs
- RelationshipEndCollection.cs
- WeakReferenceKey.cs
- StylusPointPropertyUnit.cs
- connectionpool.cs
- CellParagraph.cs
- BitmapEffectRenderDataResource.cs
- OracleParameter.cs
- EntityDataSourceDataSelection.cs
- SystemResourceKey.cs
- SoapConverter.cs
- XmlDataSource.cs
- Int16Animation.cs
- FilterQueryOptionExpression.cs
- Event.cs
- ActivityTrace.cs
- PreProcessInputEventArgs.cs
- TrackingServices.cs
- shaperfactoryquerycachekey.cs
- IndicFontClient.cs
- StringStorage.cs
- ProcessThread.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- IImplicitResourceProvider.cs
- WorkflowViewElement.cs
- ImageMetadata.cs
- DisplayInformation.cs
- IteratorDescriptor.cs
- SerializationSectionGroup.cs
- LayoutTableCell.cs
- SmiRequestExecutor.cs
- PageCache.cs
- InternalResources.cs
- XamlToRtfWriter.cs
- XslException.cs
- AddInStore.cs
- HttpProfileGroupBase.cs