Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- WebServiceHandler.cs
- TypeUtils.cs
- CheckBoxStandardAdapter.cs
- BinaryReader.cs
- PointConverter.cs
- HttpModulesSection.cs
- CqlParserHelpers.cs
- BaseValidatorDesigner.cs
- WebPartMinimizeVerb.cs
- LabelLiteral.cs
- RC2CryptoServiceProvider.cs
- AppliedDeviceFiltersDialog.cs
- NavigationProperty.cs
- VerticalAlignConverter.cs
- FileVersion.cs
- ToolStripDropDownClosingEventArgs.cs
- _LazyAsyncResult.cs
- TypeUsage.cs
- CompositeControl.cs
- StateWorkerRequest.cs
- StopStoryboard.cs
- TdsValueSetter.cs
- FormCollection.cs
- FontStyle.cs
- PeerTransportSecurityElement.cs
- Util.cs
- MemoryRecordBuffer.cs
- DataGridViewRowPostPaintEventArgs.cs
- FontInfo.cs
- AuthenticationSection.cs
- QueryCacheEntry.cs
- DesignerTransaction.cs
- MethodBuilder.cs
- WindowsIdentity.cs
- __FastResourceComparer.cs
- DataSourceXmlAttributeAttribute.cs
- SqlDelegatedTransaction.cs
- ListBoxChrome.cs
- DataGridCommandEventArgs.cs
- HttpBufferlessInputStream.cs
- NullReferenceException.cs
- Region.cs
- UInt16Converter.cs
- PaintEvent.cs
- CannotUnloadAppDomainException.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- HandledEventArgs.cs
- ListItemConverter.cs
- XmlSchemaRedefine.cs
- ListComponentEditor.cs
- DrawingCollection.cs
- basecomparevalidator.cs
- GenericRootAutomationPeer.cs
- ScrollViewerAutomationPeer.cs
- QueryRewriter.cs
- DataTableClearEvent.cs
- Speller.cs
- DbgUtil.cs
- ViewStateAttachedPropertyFeature.cs
- PrincipalPermission.cs
- MetadataItemEmitter.cs
- OSEnvironmentHelper.cs
- HScrollBar.cs
- Msmq.cs
- Stroke2.cs
- RequestCache.cs
- WebResponse.cs
- TemplateParser.cs
- TextRange.cs
- __ConsoleStream.cs
- PeerCustomResolverSettings.cs
- XmlMtomWriter.cs
- EntityDataSourceWrapper.cs
- ButtonBase.cs
- ApplicationFileCodeDomTreeGenerator.cs
- TypeExtensionConverter.cs
- DataListItem.cs
- DataGridComponentEditor.cs
- TypeSchema.cs
- HttpValueCollection.cs
- DefaultSection.cs
- XmlSchemaValidationException.cs
- Page.cs
- CompositeClientFormatter.cs
- WindowsEditBox.cs
- EmbeddedMailObject.cs
- CheckBoxBaseAdapter.cs
- SizeAnimationBase.cs
- VerificationException.cs
- CopyNamespacesAction.cs
- InstanceHandleReference.cs
- DesignTimeTemplateParser.cs
- PackageDigitalSignatureManager.cs
- NonClientArea.cs
- DependencyObject.cs
- GlyphTypeface.cs
- IChannel.cs
- ObjectSecurity.cs
- SqlConnectionPoolProviderInfo.cs
- KeyedHashAlgorithm.cs