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
- QuinticEase.cs
- EntityDataSourceViewSchema.cs
- MetaTableHelper.cs
- WriteTimeStream.cs
- ToolboxItemLoader.cs
- Triangle.cs
- PathTooLongException.cs
- TreeViewItem.cs
- HtmlTitle.cs
- ManagementOptions.cs
- FactoryId.cs
- XmlSiteMapProvider.cs
- PackageRelationshipCollection.cs
- IndexedGlyphRun.cs
- Rules.cs
- SQLMoney.cs
- DbConnectionHelper.cs
- CompareValidator.cs
- Parser.cs
- TTSEngineProxy.cs
- MethodBuilderInstantiation.cs
- SchemaMerger.cs
- SafeThreadHandle.cs
- StateManagedCollection.cs
- TemplateField.cs
- ConnectionsZone.cs
- MethodBody.cs
- DataColumnMapping.cs
- TypedColumnHandler.cs
- MarshalByValueComponent.cs
- CategoryEditor.cs
- ExpressionConverter.cs
- ToolStripDropDownButton.cs
- PartitionerQueryOperator.cs
- InteropBitmapSource.cs
- FixedDocument.cs
- Table.cs
- XmlSchemaSubstitutionGroup.cs
- DeferredElementTreeState.cs
- UIPropertyMetadata.cs
- DrawingImage.cs
- AQNBuilder.cs
- DrawingGroup.cs
- X509IssuerSerialKeyIdentifierClause.cs
- BinaryMethodMessage.cs
- Rect3D.cs
- DataGridSortCommandEventArgs.cs
- XmlChildNodes.cs
- ControlBindingsCollection.cs
- OdbcDataAdapter.cs
- Vector.cs
- StringSource.cs
- ContractReference.cs
- CodeObjectCreateExpression.cs
- SecurityUtils.cs
- GenericPrincipal.cs
- PageCatalogPart.cs
- DescriptionAttribute.cs
- HwndSubclass.cs
- DbSource.cs
- TextOptions.cs
- QilInvoke.cs
- EntityTemplateUserControl.cs
- AspNetHostingPermission.cs
- ImmutableAssemblyCacheEntry.cs
- QilSortKey.cs
- StrongNameUtility.cs
- SerializationFieldInfo.cs
- GridViewAutomationPeer.cs
- DataStorage.cs
- EnumType.cs
- Int16AnimationBase.cs
- DataGridViewControlCollection.cs
- FlowDocumentReaderAutomationPeer.cs
- SimpleType.cs
- ImageAttributes.cs
- BaseDataListDesigner.cs
- Canvas.cs
- WorkflowOwnershipException.cs
- ColorContextHelper.cs
- CharKeyFrameCollection.cs
- MonthCalendar.cs
- QuadraticBezierSegment.cs
- NaturalLanguageHyphenator.cs
- ServicePointManagerElement.cs
- ResizingMessageFilter.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- TemplateControlCodeDomTreeGenerator.cs
- RegexCode.cs
- DelayLoadType.cs
- StatusBarDrawItemEvent.cs
- TextClipboardData.cs
- FixedTextView.cs
- FloaterBaseParaClient.cs
- PhysicalFontFamily.cs
- WinEventHandler.cs
- ExpressionWriter.cs
- ProfileGroupSettings.cs
- NavigateEvent.cs
- SQlBooleanStorage.cs