Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / _NestedMultipleAsyncResult.cs / 1305376 / _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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ResourceAssociationType.cs
- WebEvents.cs
- HtmlWindowCollection.cs
- Resources.Designer.cs
- UnsafeNativeMethods.cs
- WinFormsUtils.cs
- PrivilegeNotHeldException.cs
- CodeExporter.cs
- PreloadedPackages.cs
- ExceptionNotification.cs
- DateTimeOffsetStorage.cs
- ObjectContextServiceProvider.cs
- AsynchronousChannelMergeEnumerator.cs
- DeclarativeCatalogPartDesigner.cs
- KeyInfo.cs
- QilUnary.cs
- SwitchElementsCollection.cs
- ExpressionsCollectionConverter.cs
- RootBrowserWindowAutomationPeer.cs
- ProfileSettingsCollection.cs
- HostedHttpContext.cs
- CodeTypeParameterCollection.cs
- AspCompat.cs
- RootAction.cs
- ReaderWriterLockWrapper.cs
- PolicyValidationException.cs
- CacheSection.cs
- Int16Animation.cs
- WmlPageAdapter.cs
- Visitors.cs
- XmlElementCollection.cs
- RuntimeConfigLKG.cs
- DefinitionUpdate.cs
- SystemIcons.cs
- StringFreezingAttribute.cs
- BehaviorService.cs
- Validator.cs
- ActivityPreviewDesigner.cs
- srgsitem.cs
- RegularExpressionValidator.cs
- TemplatePagerField.cs
- GenericAuthenticationEventArgs.cs
- MetadataArtifactLoaderCompositeResource.cs
- FixedStringLookup.cs
- XsltConvert.cs
- BaseParagraph.cs
- ProxyGenerationError.cs
- Point3D.cs
- DataSvcMapFileSerializer.cs
- ResourcePermissionBaseEntry.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- DictionaryBase.cs
- FormViewRow.cs
- XmlSchemaInclude.cs
- TemplateParser.cs
- FocusWithinProperty.cs
- MessageQueueException.cs
- Partitioner.cs
- RenderData.cs
- CacheEntry.cs
- CharacterMetrics.cs
- ExpandedWrapper.cs
- AppearanceEditorPart.cs
- MetafileHeaderWmf.cs
- HasCopySemanticsAttribute.cs
- SingleTagSectionHandler.cs
- TraceSection.cs
- XmlWrappingWriter.cs
- ContentElement.cs
- ContextBase.cs
- XmlSchemaAttributeGroupRef.cs
- MsmqSecureHashAlgorithm.cs
- PointCollection.cs
- GetPageNumberCompletedEventArgs.cs
- LicenseContext.cs
- ValidationHelper.cs
- XmlFormatExtensionPointAttribute.cs
- NativeMethods.cs
- XsdSchemaFileEditor.cs
- ProgressBar.cs
- HtmlMeta.cs
- _FtpControlStream.cs
- WebControlAdapter.cs
- TcpWorkerProcess.cs
- RequestStatusBarUpdateEventArgs.cs
- ConnectionPoint.cs
- Transform.cs
- EdmToObjectNamespaceMap.cs
- DateTimeOffsetConverter.cs
- TextElementEnumerator.cs
- ResXFileRef.cs
- AppLevelCompilationSectionCache.cs
- WaitHandleCannotBeOpenedException.cs
- BindingElementExtensionElement.cs
- DataObject.cs
- XmlQualifiedNameTest.cs
- TcpClientSocketManager.cs
- ResolveNextArgumentWorkItem.cs
- MessageEncoderFactory.cs
- StylusPlugin.cs