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
- PageThemeBuildProvider.cs
- InstanceHandle.cs
- MultipartContentParser.cs
- ToolStripGrip.cs
- SmtpNetworkElement.cs
- Types.cs
- Panel.cs
- XslNumber.cs
- TextModifier.cs
- DataGridRelationshipRow.cs
- DbProviderFactory.cs
- IntranetCredentialPolicy.cs
- PassportAuthenticationModule.cs
- RegexGroupCollection.cs
- SimpleBitVector32.cs
- FormViewRow.cs
- LoginName.cs
- TrackingParameters.cs
- SiteMapDataSource.cs
- ResourceReferenceExpression.cs
- ListViewPagedDataSource.cs
- NameSpaceExtractor.cs
- TextOnlyOutput.cs
- Queue.cs
- ADConnectionHelper.cs
- OletxCommittableTransaction.cs
- ReturnType.cs
- PixelShader.cs
- InstanceKeyCollisionException.cs
- ApplicationFileCodeDomTreeGenerator.cs
- SynchronizingStream.cs
- Formatter.cs
- WebServiceData.cs
- ApplicationInfo.cs
- XPathException.cs
- Msmq3PoisonHandler.cs
- DataGridViewCheckBoxCell.cs
- DocumentsTrace.cs
- ObjectSet.cs
- SimpleHandlerFactory.cs
- SqlWebEventProvider.cs
- SinglePageViewer.cs
- BuildManagerHost.cs
- CollectionsUtil.cs
- IdnMapping.cs
- AffineTransform3D.cs
- BasicAsyncResult.cs
- CryptoApi.cs
- CryptoKeySecurity.cs
- DashStyle.cs
- ISAPIRuntime.cs
- SettingsPropertyNotFoundException.cs
- ObjectDisposedException.cs
- SortFieldComparer.cs
- XmlMembersMapping.cs
- WebPartEditorOkVerb.cs
- RegexRunnerFactory.cs
- SuppressMessageAttribute.cs
- SiteMapNodeCollection.cs
- ProfileModule.cs
- BitmapFrameEncode.cs
- NamedElement.cs
- SoapObjectReader.cs
- GridViewPageEventArgs.cs
- CollectionViewProxy.cs
- PriorityItem.cs
- MaskedTextBoxTextEditorDropDown.cs
- DataGridViewElement.cs
- PreservationFileWriter.cs
- HashAlgorithm.cs
- InlineObject.cs
- FileDetails.cs
- XmlILIndex.cs
- PeerApplication.cs
- SQLDoubleStorage.cs
- EnumConverter.cs
- HttpModulesSection.cs
- SoundPlayerAction.cs
- SocketException.cs
- RoleService.cs
- UrlMappingsModule.cs
- TriggerActionCollection.cs
- ZoneButton.cs
- HttpRequest.cs
- WorkflowServiceHost.cs
- BatchServiceHost.cs
- DesignerGeometryHelper.cs
- WebPartAuthorizationEventArgs.cs
- Function.cs
- AuthorizationRule.cs
- _NetworkingPerfCounters.cs
- FrameworkObject.cs
- XsltLibrary.cs
- AppliedDeviceFiltersDialog.cs
- DataGridViewCellConverter.cs
- ClosableStream.cs
- InstanceDataCollection.cs
- DBCommandBuilder.cs
- MetabaseSettingsIis7.cs
- PageRequestManager.cs