Code:
/ FX-1434 / FX-1434 / 1.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
- HtmlElementEventArgs.cs
- WizardPanel.cs
- TypeSource.cs
- EntityClientCacheKey.cs
- FontNamesConverter.cs
- InputChannelAcceptor.cs
- CookieProtection.cs
- MethodSet.cs
- ListControl.cs
- SchemaElementLookUpTableEnumerator.cs
- StorageAssociationSetMapping.cs
- CursorConverter.cs
- DataGridTableCollection.cs
- RectConverter.cs
- BlockCollection.cs
- ClientUIRequest.cs
- RegexBoyerMoore.cs
- _HelperAsyncResults.cs
- DesignerAutoFormatCollection.cs
- ScalarConstant.cs
- _CommandStream.cs
- SecurityRuntime.cs
- CardSpaceSelector.cs
- ValidationErrorEventArgs.cs
- StrokeDescriptor.cs
- DBCommandBuilder.cs
- SubMenuStyleCollection.cs
- StronglyTypedResourceBuilder.cs
- GridViewDesigner.cs
- IdentitySection.cs
- SqlFunctions.cs
- XmlnsDictionary.cs
- Span.cs
- PageCatalogPart.cs
- ToolStripDropDownMenu.cs
- StaticFileHandler.cs
- KeyedHashAlgorithm.cs
- ChildrenQuery.cs
- GeometryModel3D.cs
- RegisteredScript.cs
- DataRow.cs
- CorrelationToken.cs
- Byte.cs
- ConnectionStringSettingsCollection.cs
- Tracking.cs
- StrongName.cs
- CompositeDesignerAccessibleObject.cs
- SingleSelectRootGridEntry.cs
- DtdParser.cs
- Console.cs
- COM2PictureConverter.cs
- XmlSchemaObjectTable.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- SqlStream.cs
- GlobalizationAssembly.cs
- XMLDiffLoader.cs
- ParameterToken.cs
- HostingEnvironmentSection.cs
- CollectionBuilder.cs
- AdRotatorDesigner.cs
- ResourceDisplayNameAttribute.cs
- MinimizableAttributeTypeConverter.cs
- dataobject.cs
- XmlExpressionDumper.cs
- FilteredDataSetHelper.cs
- MenuTracker.cs
- ResourceProviderFactory.cs
- IgnoreFileBuildProvider.cs
- HtmlTitle.cs
- FormView.cs
- HorizontalAlignConverter.cs
- DataGridViewDataErrorEventArgs.cs
- MediaContext.cs
- ValueSerializer.cs
- TextTreeTextNode.cs
- Win32PrintDialog.cs
- SqlGenericUtil.cs
- CreateDataSourceDialog.cs
- LayoutTableCell.cs
- XmlWriterTraceListener.cs
- Fonts.cs
- Stream.cs
- CustomCredentialPolicy.cs
- StrongNamePublicKeyBlob.cs
- VisualBasic.cs
- URLEditor.cs
- ShutDownListener.cs
- Processor.cs
- TabletDevice.cs
- SqlBinder.cs
- MultipleViewProviderWrapper.cs
- IFormattable.cs
- BinaryFormatterSinks.cs
- DecoderNLS.cs
- WpfMemberInvoker.cs
- SiteMapNodeItemEventArgs.cs
- LocationUpdates.cs
- TypeFieldSchema.cs
- ConcatQueryOperator.cs
- FlowDocumentScrollViewer.cs