Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- WindowsFormsHelpers.cs
- Compress.cs
- TranslateTransform.cs
- WebPartConnectionsEventArgs.cs
- NameValueCollection.cs
- PrePrepareMethodAttribute.cs
- ObjectItemCollection.cs
- BypassElementCollection.cs
- WindowsNonControl.cs
- TextMetrics.cs
- CompilerParameters.cs
- MapPathBasedVirtualPathProvider.cs
- InputScopeAttribute.cs
- XmlSchemaCompilationSettings.cs
- BoundingRectTracker.cs
- CounterSampleCalculator.cs
- Process.cs
- ValidateNames.cs
- TextHidden.cs
- ResourceContainer.cs
- hwndwrapper.cs
- OraclePermissionAttribute.cs
- MultiBindingExpression.cs
- GridSplitterAutomationPeer.cs
- DoubleStorage.cs
- ProxyGenerationError.cs
- ComponentResourceManager.cs
- XmlSchemaSimpleContentExtension.cs
- _TimerThread.cs
- NavigatingCancelEventArgs.cs
- XPathBuilder.cs
- InputManager.cs
- CurrentTimeZone.cs
- SamlAdvice.cs
- EditBehavior.cs
- HyperLinkField.cs
- ResourcePermissionBase.cs
- ConnectionsZoneDesigner.cs
- PenThread.cs
- ADRole.cs
- LabelAutomationPeer.cs
- ObjectAnimationUsingKeyFrames.cs
- ObjectItemAttributeAssemblyLoader.cs
- InfocardInteractiveChannelInitializer.cs
- HashMembershipCondition.cs
- CodeFieldReferenceExpression.cs
- DataObjectSettingDataEventArgs.cs
- OperandQuery.cs
- FixedSOMLineCollection.cs
- LabelEditEvent.cs
- SqlProviderServices.cs
- DocumentXmlWriter.cs
- PrintPreviewGraphics.cs
- MeshGeometry3D.cs
- ClientUtils.cs
- FormClosedEvent.cs
- SimplePropertyEntry.cs
- StateManagedCollection.cs
- EntityDesignerUtils.cs
- CacheMemory.cs
- NegationPusher.cs
- DoubleAnimationUsingPath.cs
- ObjectSet.cs
- HandledMouseEvent.cs
- MailAddress.cs
- DrawItemEvent.cs
- DesignerSerializationVisibilityAttribute.cs
- Image.cs
- CacheDependency.cs
- FormViewModeEventArgs.cs
- ActivityIdHeader.cs
- Ray3DHitTestResult.cs
- TraceSection.cs
- diagnosticsswitches.cs
- DockPattern.cs
- ControlBuilder.cs
- TablePattern.cs
- UpdateManifestForBrowserApplication.cs
- Pkcs7Signer.cs
- FileDataSource.cs
- CssStyleCollection.cs
- XmlSerializerAssemblyAttribute.cs
- BufferedStream.cs
- BlobPersonalizationState.cs
- SessionEndingCancelEventArgs.cs
- WebRequestModuleElementCollection.cs
- Int64Storage.cs
- DefaultValueConverter.cs
- SyncOperationState.cs
- SecurityDescriptor.cs
- ApplicationSettingsBase.cs
- FSWPathEditor.cs
- ExecutionEngineException.cs
- BypassElement.cs
- OdbcException.cs
- ReplyAdapterChannelListener.cs
- FileUtil.cs
- DataStreamFromComStream.cs
- CollectionBase.cs
- MarkupExtensionSerializer.cs