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
- HandledMouseEvent.cs
- ObservableDictionary.cs
- ContentType.cs
- MergeEnumerator.cs
- SqlDataReader.cs
- SQLDecimal.cs
- StreamWithDictionary.cs
- DataTableNewRowEvent.cs
- ObjectDataSourceEventArgs.cs
- PipeSecurity.cs
- CodeAttributeDeclarationCollection.cs
- TrackingServices.cs
- StoreAnnotationsMap.cs
- PerformanceCounterPermissionAttribute.cs
- COMException.cs
- IdentitySection.cs
- DataGridViewBindingCompleteEventArgs.cs
- InitializerFacet.cs
- XmlUTF8TextWriter.cs
- TextEffectCollection.cs
- ClockGroup.cs
- InputLanguageManager.cs
- PersonalizablePropertyEntry.cs
- CustomValidator.cs
- ColorConvertedBitmap.cs
- Point3D.cs
- MethodBuilderInstantiation.cs
- MethodBuilderInstantiation.cs
- FontUnitConverter.cs
- SourceElementsCollection.cs
- ResolveCriteria11.cs
- _ConnectOverlappedAsyncResult.cs
- DataColumnPropertyDescriptor.cs
- SettingsContext.cs
- FormClosingEvent.cs
- RegexWriter.cs
- DispatchWrapper.cs
- CodeSubDirectoriesCollection.cs
- ScrollEvent.cs
- WaitHandle.cs
- IPEndPoint.cs
- QueryParameter.cs
- ZipIOLocalFileDataDescriptor.cs
- FixedPageProcessor.cs
- ModulesEntry.cs
- DependencyPropertyKey.cs
- Page.cs
- mediaclock.cs
- DataSourceXmlElementAttribute.cs
- ConfigsHelper.cs
- UrlPath.cs
- DesignerActionUIStateChangeEventArgs.cs
- Profiler.cs
- Int32CollectionValueSerializer.cs
- CustomTypeDescriptor.cs
- ParsedRoute.cs
- OperationInfoBase.cs
- TdsParser.cs
- TableLayoutRowStyleCollection.cs
- _DynamicWinsockMethods.cs
- XmlUtil.cs
- BinaryUtilClasses.cs
- Storyboard.cs
- DocumentApplicationDocumentViewer.cs
- HtmlInputText.cs
- DesignTimeType.cs
- ShaderEffect.cs
- Nullable.cs
- ContentTextAutomationPeer.cs
- EDesignUtil.cs
- ConfigurationStrings.cs
- LiteralText.cs
- Condition.cs
- WindowsListViewSubItem.cs
- HostedElements.cs
- SystemDropShadowChrome.cs
- MenuItem.cs
- TextStore.cs
- InfoCardCryptoHelper.cs
- XPathMultyIterator.cs
- MethodRental.cs
- ExpandableObjectConverter.cs
- GridItemProviderWrapper.cs
- WebHeaderCollection.cs
- TraceSource.cs
- ScrollBarRenderer.cs
- AutomationAttributeInfo.cs
- TextTreeTextNode.cs
- DecoderFallback.cs
- _StreamFramer.cs
- KeyNotFoundException.cs
- FlowDocumentReader.cs
- LambdaCompiler.Unary.cs
- ReliableChannelBinder.cs
- XmlIlGenerator.cs
- StrokeCollectionConverter.cs
- _LazyAsyncResult.cs
- FamilyTypeface.cs
- DragEvent.cs
- DataServiceRequestException.cs