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
- ResXDataNode.cs
- SrgsText.cs
- ImportedNamespaceContextItem.cs
- PageSettings.cs
- UnsafeNativeMethods.cs
- ContextStaticAttribute.cs
- ResourceProviderFactory.cs
- HijriCalendar.cs
- ApplicationSecurityManager.cs
- DecoderReplacementFallback.cs
- ContentHostHelper.cs
- TextTreeUndo.cs
- RangeContentEnumerator.cs
- FormParameter.cs
- JournalNavigationScope.cs
- CharAnimationUsingKeyFrames.cs
- CatalogPartCollection.cs
- XmlSchemaIdentityConstraint.cs
- LineUtil.cs
- JoinCqlBlock.cs
- TableParagraph.cs
- configsystem.cs
- FixedSOMTextRun.cs
- XmlSchemaAnnotation.cs
- DataContractAttribute.cs
- AddingNewEventArgs.cs
- GenericsInstances.cs
- CornerRadiusConverter.cs
- PreservationFileReader.cs
- RoleManagerSection.cs
- Expression.DebuggerProxy.cs
- PingReply.cs
- SystemIcons.cs
- GridSplitter.cs
- FileEnumerator.cs
- HMACSHA256.cs
- ScriptControlDescriptor.cs
- DataGridItem.cs
- _HeaderInfo.cs
- Font.cs
- CodeTypeDeclarationCollection.cs
- DuplicateWaitObjectException.cs
- WithParamAction.cs
- DataGridCellAutomationPeer.cs
- StringUtil.cs
- AnnotationStore.cs
- CodeAssignStatement.cs
- StrokeNode.cs
- HtmlInputButton.cs
- TemplateInstanceAttribute.cs
- ScriptingSectionGroup.cs
- Point3DCollectionConverter.cs
- Application.cs
- DataGridColumnDropSeparator.cs
- MiniModule.cs
- Timer.cs
- ServiceContractViewControl.Designer.cs
- DecimalConstantAttribute.cs
- AssemblyAttributes.cs
- Path.cs
- BaseTreeIterator.cs
- TemplateControlParser.cs
- Graph.cs
- ToolStripContentPanel.cs
- Graph.cs
- GeneratedContractType.cs
- ContentPresenter.cs
- SymmetricKey.cs
- DESCryptoServiceProvider.cs
- SEHException.cs
- WebPartManagerDesigner.cs
- PeerTransportListenAddressValidatorAttribute.cs
- Lease.cs
- CodeCastExpression.cs
- SqlConnectionManager.cs
- COM2ExtendedUITypeEditor.cs
- Stacktrace.cs
- ValidationRuleCollection.cs
- QueryCacheManager.cs
- DispatcherObject.cs
- XmlSyndicationContent.cs
- GacUtil.cs
- SoapEnumAttribute.cs
- HtmlForm.cs
- ClientBuildManagerCallback.cs
- CompositeFontFamily.cs
- CSharpCodeProvider.cs
- NotFiniteNumberException.cs
- Point3DValueSerializer.cs
- ExpressionBuilder.cs
- ListViewContainer.cs
- CapabilitiesRule.cs
- DataGridColumn.cs
- WindowsListViewGroup.cs
- AppDomain.cs
- PkcsUtils.cs
- ColumnHeader.cs
- QueryAsyncResult.cs
- SystemColors.cs
- ConstructorNeedsTagAttribute.cs