Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ToolStripPanel.cs
- ReliableChannelBinder.cs
- GridView.cs
- DataServiceRequest.cs
- DbConnectionPoolIdentity.cs
- ContractMapping.cs
- URL.cs
- EtwTrace.cs
- Helpers.cs
- UniqueIdentifierService.cs
- FormViewModeEventArgs.cs
- HttpHandlersSection.cs
- HtmlTernaryTree.cs
- ConfigXmlElement.cs
- CredentialCache.cs
- TextServicesLoader.cs
- CompilerScopeManager.cs
- TextSimpleMarkerProperties.cs
- CryptoConfig.cs
- GlobalizationSection.cs
- WebPartConnectionsDisconnectVerb.cs
- SelectionItemProviderWrapper.cs
- IDispatchConstantAttribute.cs
- DataService.cs
- GPPOINT.cs
- NumericUpDown.cs
- BidirectionalDictionary.cs
- OdbcStatementHandle.cs
- RbTree.cs
- HelpInfo.cs
- TemplateControlParser.cs
- XmlNodeChangedEventManager.cs
- ApplicationFileCodeDomTreeGenerator.cs
- EdmTypeAttribute.cs
- CustomBindingElement.cs
- BindingContext.cs
- ExtendedProperty.cs
- TemplateControlBuildProvider.cs
- ViewRendering.cs
- Polygon.cs
- NotificationContext.cs
- CodeDelegateCreateExpression.cs
- CompositeScriptReferenceEventArgs.cs
- ModuleConfigurationInfo.cs
- SQLDoubleStorage.cs
- EdmItemCollection.cs
- AspProxy.cs
- EditBehavior.cs
- X509RawDataKeyIdentifierClause.cs
- Setter.cs
- XmlSchemaGroup.cs
- CookieParameter.cs
- AuthenticodeSignatureInformation.cs
- ClientUrlResolverWrapper.cs
- Timeline.cs
- ExpressionPrinter.cs
- DocumentPaginator.cs
- RowToParametersTransformer.cs
- NonNullItemCollection.cs
- ToolStripSystemRenderer.cs
- HttpCachePolicyElement.cs
- EmptyTextWriter.cs
- SoapAttributeOverrides.cs
- SpellerError.cs
- InternalRelationshipCollection.cs
- InputBinder.cs
- PropertyOrder.cs
- ProgressBar.cs
- FieldAccessException.cs
- CreateUserErrorEventArgs.cs
- coordinatorfactory.cs
- Part.cs
- NullableBoolConverter.cs
- BulletChrome.cs
- SchemaObjectWriter.cs
- KoreanLunisolarCalendar.cs
- ProviderConnectionPoint.cs
- AtomicFile.cs
- AlignmentXValidation.cs
- CalendarSelectionChangedEventArgs.cs
- Reference.cs
- ProfileManager.cs
- RunInstallerAttribute.cs
- InitializerFacet.cs
- RIPEMD160Managed.cs
- ExpressionLexer.cs
- SafeLocalMemHandle.cs
- Literal.cs
- XmlElementList.cs
- DriveInfo.cs
- StyleXamlTreeBuilder.cs
- NameValueSectionHandler.cs
- ListSortDescriptionCollection.cs
- IgnoreFileBuildProvider.cs
- ConvertersCollection.cs
- TextParagraph.cs
- Transform3D.cs
- ObjectReaderCompiler.cs
- ImmComposition.cs
- METAHEADER.cs