Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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 // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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 // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DiscardableAttribute.cs
- SafeFileHandle.cs
- DebugInfoExpression.cs
- GeneralTransform3D.cs
- Math.cs
- StateRuntime.cs
- FunctionNode.cs
- TouchPoint.cs
- Transform.cs
- FatalException.cs
- TreeView.cs
- SafeArchiveContext.cs
- BasicExpressionVisitor.cs
- SuppressIldasmAttribute.cs
- FormViewModeEventArgs.cs
- bindurihelper.cs
- DbConnectionStringCommon.cs
- LocalizationCodeDomSerializer.cs
- DbException.cs
- ChannelSinkStacks.cs
- CodeObjectCreateExpression.cs
- HttpCookieCollection.cs
- TemplatedAdorner.cs
- VerticalAlignConverter.cs
- TabControlAutomationPeer.cs
- Base64Encoder.cs
- TreeViewImageIndexConverter.cs
- ProfileSettings.cs
- TlsSspiNegotiation.cs
- ChannelServices.cs
- _IPv6Address.cs
- DescendentsWalker.cs
- NamespaceMapping.cs
- HttpContextServiceHost.cs
- UnmanagedBitmapWrapper.cs
- Int32Storage.cs
- ValidationPropertyAttribute.cs
- BufferBuilder.cs
- XPathDescendantIterator.cs
- TransformedBitmap.cs
- securitymgrsite.cs
- SimpleFieldTemplateFactory.cs
- Annotation.cs
- SafeProcessHandle.cs
- MDIWindowDialog.cs
- EnumerableWrapperWeakToStrong.cs
- InputBuffer.cs
- ProviderCommandInfoUtils.cs
- JsonDeserializer.cs
- DataChangedEventManager.cs
- DefaultPropertyAttribute.cs
- StringWriter.cs
- XmlWhitespace.cs
- ClientTargetCollection.cs
- IndexedSelectQueryOperator.cs
- SizeLimitedCache.cs
- MessageVersionConverter.cs
- NamespaceInfo.cs
- BuildProvider.cs
- ImageClickEventArgs.cs
- TimeoutValidationAttribute.cs
- ExpressionList.cs
- DataPagerCommandEventArgs.cs
- _TimerThread.cs
- PackageDocument.cs
- NoPersistHandle.cs
- ConfigurationException.cs
- WebEvents.cs
- PrincipalPermission.cs
- InsufficientMemoryException.cs
- AudioStateChangedEventArgs.cs
- ThemeableAttribute.cs
- XPathDocumentNavigator.cs
- UnmanagedMemoryAccessor.cs
- RelationshipFixer.cs
- SchemaImporterExtension.cs
- SplineKeyFrames.cs
- AutoCompleteStringCollection.cs
- VirtualDirectoryMappingCollection.cs
- XhtmlBasicValidatorAdapter.cs
- XmlValueConverter.cs
- EventsTab.cs
- EventLogRecord.cs
- BaseValidator.cs
- HasCopySemanticsAttribute.cs
- GridViewSelectEventArgs.cs
- XmlSortKeyAccumulator.cs
- PointAnimationBase.cs
- AutomationEvent.cs
- xdrvalidator.cs
- ConsoleKeyInfo.cs
- InfocardExtendedInformationCollection.cs
- FileDataSourceCache.cs
- PageHandlerFactory.cs
- listitem.cs
- XamlStyleSerializer.cs
- CatalogPartCollection.cs
- ExpressionPrefixAttribute.cs
- CodeValidator.cs
- ReferencedType.cs