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
- UIElement3DAutomationPeer.cs
- OperationAbortedException.cs
- RtType.cs
- EventLogHandle.cs
- UpDownEvent.cs
- URI.cs
- ProgressiveCrcCalculatingStream.cs
- ToolStripContainer.cs
- SHA256Managed.cs
- SchemaCollectionPreprocessor.cs
- ConnectionStringsSection.cs
- InstanceView.cs
- SEHException.cs
- Model3DGroup.cs
- ThreadStateException.cs
- LassoHelper.cs
- WebBrowserPermission.cs
- CookieParameter.cs
- HealthMonitoringSectionHelper.cs
- ViewStateModeByIdAttribute.cs
- HashRepartitionStream.cs
- PathSegment.cs
- Transform3DGroup.cs
- HiddenField.cs
- DCSafeHandle.cs
- HiddenFieldPageStatePersister.cs
- ProfileElement.cs
- ExecutionTracker.cs
- FixedHighlight.cs
- ScalarOps.cs
- SqlRetyper.cs
- WebPartVerbCollection.cs
- UserInitiatedRoutedEventPermission.cs
- ProfileParameter.cs
- ISessionStateStore.cs
- IisTraceWebEventProvider.cs
- ObjectContext.cs
- EntryPointNotFoundException.cs
- BitVector32.cs
- DrawItemEvent.cs
- DataContext.cs
- HostingEnvironmentSection.cs
- _SingleItemRequestCache.cs
- ToolStripGrip.cs
- KeyPressEvent.cs
- Registry.cs
- QuaternionAnimation.cs
- WebEventTraceProvider.cs
- IOThreadScheduler.cs
- ComplexBindingPropertiesAttribute.cs
- CompressEmulationStream.cs
- Unit.cs
- ReachPrintTicketSerializer.cs
- PageContentCollection.cs
- IsolatedStoragePermission.cs
- LiteralLink.cs
- ImageCollectionCodeDomSerializer.cs
- RestHandlerFactory.cs
- OdbcParameterCollection.cs
- ContractMapping.cs
- OneOf.cs
- XmlEventCache.cs
- DesignerRegion.cs
- BindingMemberInfo.cs
- _KerberosClient.cs
- SystemFonts.cs
- EntityContainerEntitySetDefiningQuery.cs
- BindingNavigatorDesigner.cs
- ErrorActivity.cs
- AttributeParameterInfo.cs
- XmlSchemaAll.cs
- DataViewManager.cs
- xml.cs
- GlyphManager.cs
- DataGridRelationshipRow.cs
- InstanceKeyCollisionException.cs
- SignatureToken.cs
- Function.cs
- AuthorizationSection.cs
- KeyedHashAlgorithm.cs
- SerialErrors.cs
- RawStylusInput.cs
- HttpApplicationFactory.cs
- ActivationServices.cs
- SymLanguageType.cs
- DataControlReferenceCollection.cs
- TdsValueSetter.cs
- GridSplitterAutomationPeer.cs
- InputLangChangeRequestEvent.cs
- EditorPartCollection.cs
- ReceiveSecurityHeaderEntry.cs
- CreateUserWizardStep.cs
- UpDownBase.cs
- DataGridViewSelectedRowCollection.cs
- CalendarTable.cs
- CompositeDispatchFormatter.cs
- UnaryExpression.cs
- SqlDataSourceStatusEventArgs.cs
- FixedHighlight.cs
- RenameRuleObjectDialog.cs