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
- XomlDesignerLoader.cs
- Drawing.cs
- PasswordDeriveBytes.cs
- XmlAggregates.cs
- UdpDuplexChannel.cs
- PageRanges.cs
- sqlpipe.cs
- EmptyEnumerator.cs
- IsolationInterop.cs
- ConnectionPoint.cs
- DataChangedEventManager.cs
- SharedHttpTransportManager.cs
- StylusTip.cs
- FontFamilyValueSerializer.cs
- SQLInt16Storage.cs
- HotCommands.cs
- CompoundFileStreamReference.cs
- XmlSchemaException.cs
- XmlQueryType.cs
- OpenTypeLayoutCache.cs
- DataShape.cs
- TextSearch.cs
- ScrollChrome.cs
- SpotLight.cs
- FormsAuthenticationModule.cs
- Keywords.cs
- Frame.cs
- EnumerableRowCollectionExtensions.cs
- XmlAttribute.cs
- DesignerOptions.cs
- RangeExpression.cs
- SchemaNotation.cs
- ZoneLinkButton.cs
- XmlAttributeAttribute.cs
- CodeCatchClauseCollection.cs
- HttpModulesSection.cs
- ThreadExceptionDialog.cs
- ToolStripDropDownMenu.cs
- VariableElement.cs
- PersonalizationStateInfoCollection.cs
- PropertyCondition.cs
- HuffCodec.cs
- MouseWheelEventArgs.cs
- ListViewInsertionMark.cs
- TextHidden.cs
- TextViewSelectionProcessor.cs
- SqlRetyper.cs
- SHA384.cs
- oledbconnectionstring.cs
- EncodingInfo.cs
- MatrixTransform.cs
- PixelFormatConverter.cs
- SqlCommand.cs
- UpdateCommand.cs
- IsolatedStorageFilePermission.cs
- AuthenticationSection.cs
- StringSource.cs
- MenuScrollingVisibilityConverter.cs
- StateWorkerRequest.cs
- mediaeventargs.cs
- SrgsRule.cs
- DateRangeEvent.cs
- InputLanguageCollection.cs
- InstanceOwner.cs
- OrderedDictionaryStateHelper.cs
- GrammarBuilderWildcard.cs
- AssemblyAttributes.cs
- ListSourceHelper.cs
- SchemaImporterExtensionElementCollection.cs
- CredentialCache.cs
- GeneralTransform3D.cs
- VisualBrush.cs
- ActivityTrace.cs
- TemplateAction.cs
- AbstractDataSvcMapFileLoader.cs
- AnimatedTypeHelpers.cs
- CheckableControlBaseAdapter.cs
- Int16Converter.cs
- LazyTextWriterCreator.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- ByteFacetDescriptionElement.cs
- ScrollItemProviderWrapper.cs
- EnvelopedPkcs7.cs
- UnsafeNativeMethods.cs
- BindableAttribute.cs
- HostingPreferredMapPath.cs
- WSSecurityPolicy.cs
- GridViewSelectEventArgs.cs
- FloaterParaClient.cs
- AdornerPresentationContext.cs
- TabletCollection.cs
- LoginView.cs
- DynamicDocumentPaginator.cs
- XmlAttributeCache.cs
- PEFileEvidenceFactory.cs
- TargetFrameworkUtil.cs
- SamlAttribute.cs
- DateRangeEvent.cs
- HttpVersion.cs
- GridEntry.cs