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
- SqlDataReader.cs
- ApplicationServicesHostFactory.cs
- XmlDomTextWriter.cs
- PropertyItemInternal.cs
- XD.cs
- LogReserveAndAppendState.cs
- DynamicPropertyHolder.cs
- BezierSegment.cs
- SchemaExporter.cs
- Translator.cs
- EntityDataSource.cs
- DatagridviewDisplayedBandsData.cs
- IdentityNotMappedException.cs
- NotSupportedException.cs
- QueueException.cs
- ConfigurationLocation.cs
- OrCondition.cs
- PopOutPanel.cs
- OleDbReferenceCollection.cs
- LayoutSettings.cs
- OrthographicCamera.cs
- SchemaCollectionPreprocessor.cs
- DecoratedNameAttribute.cs
- CodeDomLoader.cs
- Lease.cs
- ResourceDescriptionAttribute.cs
- EditorPartChrome.cs
- MachineKeyConverter.cs
- EventLogEntryCollection.cs
- NumericExpr.cs
- ModelUIElement3D.cs
- WindowCollection.cs
- RuntimeIdentifierPropertyAttribute.cs
- MailHeaderInfo.cs
- Win32KeyboardDevice.cs
- ToolStripDropDownClosingEventArgs.cs
- EditorPartCollection.cs
- SerializableAttribute.cs
- RuntimeResourceSet.cs
- PolyBezierSegmentFigureLogic.cs
- ProvidersHelper.cs
- XmlSchemaElement.cs
- EntityReference.cs
- Point4D.cs
- Grant.cs
- CodeTypeReference.cs
- TypeDescriptor.cs
- DbQueryCommandTree.cs
- WebEventCodes.cs
- XmlFormatExtensionPointAttribute.cs
- ManifestResourceInfo.cs
- CodeGotoStatement.cs
- DesignerEditorPartChrome.cs
- CollectionViewGroupInternal.cs
- CodeCommentStatementCollection.cs
- ProcessHostFactoryHelper.cs
- DeclarationUpdate.cs
- ReturnEventArgs.cs
- TextParaLineResult.cs
- ContextMarshalException.cs
- PowerModeChangedEventArgs.cs
- DataSourceXmlAttributeAttribute.cs
- EditorPartDesigner.cs
- CryptoConfig.cs
- BoundPropertyEntry.cs
- SafeMemoryMappedFileHandle.cs
- DoubleLinkList.cs
- SettingsAttributes.cs
- SolidColorBrush.cs
- TextElementCollectionHelper.cs
- TemplateNodeContextMenu.cs
- CompressionTransform.cs
- AllMembershipCondition.cs
- ConnectorSelectionGlyph.cs
- MenuItemCollectionEditor.cs
- StrokeDescriptor.cs
- StreamWithDictionary.cs
- ComponentResourceManager.cs
- ConfigurationElement.cs
- MetadataItem.cs
- WSSecurityPolicy11.cs
- SubpageParaClient.cs
- ProbeRequestResponseAsyncResult.cs
- DateTimeUtil.cs
- CustomGrammar.cs
- SqlCommandBuilder.cs
- EndPoint.cs
- ResXResourceSet.cs
- DynamicRenderer.cs
- XhtmlTextWriter.cs
- SemanticBasicElement.cs
- SchemaSetCompiler.cs
- DurableInstanceManager.cs
- FormatException.cs
- PropertyKey.cs
- CodeObject.cs
- Base64Stream.cs
- DbMetaDataCollectionNames.cs
- TraceContextRecord.cs
- DbProviderFactoriesConfigurationHandler.cs