Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / _NestedMultipleAsyncResult.cs / 1305376 / _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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ExtendedProtectionPolicyElement.cs
- RuleInfoComparer.cs
- NullableDecimalMinMaxAggregationOperator.cs
- Light.cs
- XmlParserContext.cs
- TextEditorSpelling.cs
- GreenMethods.cs
- RightsManagementResourceHelper.cs
- GridViewColumnHeaderAutomationPeer.cs
- ViewStateException.cs
- ListBoxItemWrapperAutomationPeer.cs
- BaseConfigurationRecord.cs
- GroupStyle.cs
- GlyphsSerializer.cs
- SortExpressionBuilder.cs
- AttributeData.cs
- PropertyDescriptorCollection.cs
- SafeNativeMethods.cs
- FirstMatchCodeGroup.cs
- ExtensionSimplifierMarkupObject.cs
- BindableAttribute.cs
- SiteMapProvider.cs
- TransformedBitmap.cs
- ToolStripSplitButton.cs
- ButtonRenderer.cs
- _CacheStreams.cs
- FixedSOMLineCollection.cs
- ModuleBuilder.cs
- VersionedStream.cs
- UnsafeNativeMethods.cs
- SqlCacheDependencySection.cs
- AnnotationHelper.cs
- HttpCacheParams.cs
- Delegate.cs
- UIHelper.cs
- UDPClient.cs
- PropertyPanel.cs
- ADMembershipUser.cs
- BuildProvider.cs
- FileSystemWatcher.cs
- WebColorConverter.cs
- AsnEncodedData.cs
- EntityClassGenerator.cs
- ToolStripRenderEventArgs.cs
- Metafile.cs
- InternalConfigHost.cs
- NodeInfo.cs
- TypeConverter.cs
- NonBatchDirectoryCompiler.cs
- ReflectionTypeLoadException.cs
- SqlWebEventProvider.cs
- RayMeshGeometry3DHitTestResult.cs
- WCFModelStrings.Designer.cs
- Contracts.cs
- PageContentAsyncResult.cs
- TextDataBindingHandler.cs
- DataGridHeaderBorder.cs
- ListViewDeletedEventArgs.cs
- WebPartHeaderCloseVerb.cs
- ClientSession.cs
- MimeFormatter.cs
- RuleInfoComparer.cs
- DocumentOrderComparer.cs
- DesignerAdapterAttribute.cs
- Vector3DAnimation.cs
- SponsorHelper.cs
- webproxy.cs
- CapabilitiesSection.cs
- WindowHideOrCloseTracker.cs
- XsdBuilder.cs
- ImageField.cs
- TiffBitmapDecoder.cs
- PropertyDescriptorGridEntry.cs
- columnmapfactory.cs
- InstancePersistenceException.cs
- ChtmlImageAdapter.cs
- StringCollectionMarkupSerializer.cs
- DelegateSerializationHolder.cs
- ListMarkerLine.cs
- ColorAnimation.cs
- AssociationTypeEmitter.cs
- LinkGrep.cs
- PeerTransportListenAddressValidatorAttribute.cs
- HttpApplication.cs
- WebEventCodes.cs
- WinEventQueueItem.cs
- RegexCompiler.cs
- RequestBringIntoViewEventArgs.cs
- SystemColors.cs
- SimpleColumnProvider.cs
- SchemaExporter.cs
- X509UI.cs
- DataSourceCacheDurationConverter.cs
- NGCPageContentSerializerAsync.cs
- HighlightComponent.cs
- RegexBoyerMoore.cs
- XmlSchemaComplexContentExtension.cs
- ChtmlTextWriter.cs
- RightsManagementManager.cs
- BindingGraph.cs