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
- SplitterCancelEvent.cs
- DetailsViewPagerRow.cs
- CurrencyManager.cs
- DisplayNameAttribute.cs
- GridViewSortEventArgs.cs
- AuthenticationConfig.cs
- XmlDocumentFragment.cs
- Pointer.cs
- HealthMonitoringSectionHelper.cs
- XPathNodeList.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- CheckedPointers.cs
- WebConfigurationFileMap.cs
- SizeFConverter.cs
- FontDriver.cs
- UIPermission.cs
- Registry.cs
- VirtualPathUtility.cs
- PluralizationServiceUtil.cs
- GetPageNumberCompletedEventArgs.cs
- CalendarDesigner.cs
- Resources.Designer.cs
- Matrix3DValueSerializer.cs
- TextSyndicationContent.cs
- DesignerCapabilities.cs
- ProfileParameter.cs
- StreamMarshaler.cs
- ParentQuery.cs
- OLEDB_Util.cs
- ClientOperationFormatterProvider.cs
- PrinterResolution.cs
- DynamicUpdateCommand.cs
- ResourceDisplayNameAttribute.cs
- Choices.cs
- Codec.cs
- EnumerableCollectionView.cs
- XpsFilter.cs
- TdsEnums.cs
- NumberSubstitution.cs
- DataGridViewAdvancedBorderStyle.cs
- X509SubjectKeyIdentifierClause.cs
- AnonymousIdentificationSection.cs
- WindowsStartMenu.cs
- RuntimeEnvironment.cs
- JournalEntryListConverter.cs
- Block.cs
- OutputChannel.cs
- XD.cs
- SourceElementsCollection.cs
- ImmComposition.cs
- LogConverter.cs
- StrongNameUtility.cs
- DESCryptoServiceProvider.cs
- UIElementParagraph.cs
- SHA384Managed.cs
- ResetableIterator.cs
- ZoneIdentityPermission.cs
- GZipStream.cs
- ProfileSettings.cs
- Model3D.cs
- SafeLocalMemHandle.cs
- DesignColumn.cs
- StylusPointProperties.cs
- Odbc32.cs
- WindowsProgressbar.cs
- CodeTypeDeclaration.cs
- AllMembershipCondition.cs
- ListBoxAutomationPeer.cs
- WebPartVerb.cs
- EventProxy.cs
- FormatSelectingMessageInspector.cs
- WebPart.cs
- AsymmetricSignatureFormatter.cs
- WebBrowserSiteBase.cs
- ToolboxItemCollection.cs
- SchemaNames.cs
- DecimalAnimation.cs
- TextParaClient.cs
- SwitchElementsCollection.cs
- ObjectStateFormatter.cs
- ContextDataSourceView.cs
- TypedElement.cs
- BinaryConverter.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- xmlsaver.cs
- SatelliteContractVersionAttribute.cs
- PieceDirectory.cs
- DataMisalignedException.cs
- DbDataAdapter.cs
- EventLogEntryCollection.cs
- RuntimeResourceSet.cs
- Propagator.ExtentPlaceholderCreator.cs
- ControlAdapter.cs
- IndentedWriter.cs
- CacheAxisQuery.cs
- QueryStringParameter.cs
- ParameterCollection.cs
- ItemList.cs
- KnownBoxes.cs