Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- RegexCode.cs
- ByteStreamMessageEncodingElement.cs
- WebEncodingValidatorAttribute.cs
- SerializerProvider.cs
- TextTreeInsertElementUndoUnit.cs
- SingleAnimationUsingKeyFrames.cs
- ObjectSet.cs
- SHA512Managed.cs
- MobileControl.cs
- HttpClientCertificate.cs
- BookmarkScopeManager.cs
- SslStream.cs
- QuaternionRotation3D.cs
- CompilerErrorCollection.cs
- SQlBooleanStorage.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- ISAPIApplicationHost.cs
- DesignTimeParseData.cs
- MarkupExtensionSerializer.cs
- MethodBody.cs
- WebPartVerb.cs
- XmlEntityReference.cs
- OleDbStruct.cs
- GZipStream.cs
- TabItemAutomationPeer.cs
- FormattedText.cs
- TabItemWrapperAutomationPeer.cs
- EnumConverter.cs
- WebBrowser.cs
- EventQueueState.cs
- CaseInsensitiveHashCodeProvider.cs
- TakeOrSkipQueryOperator.cs
- NameTable.cs
- DBDataPermission.cs
- SchemaLookupTable.cs
- ServiceNameElement.cs
- XAMLParseException.cs
- PathGeometry.cs
- WeakReferenceList.cs
- WorkflowMarkupSerializerMapping.cs
- MappingItemCollection.cs
- DesignerCapabilities.cs
- ToolStripContentPanelRenderEventArgs.cs
- EntitySetBaseCollection.cs
- XamlHostingConfiguration.cs
- OrderedDictionary.cs
- OleDbParameterCollection.cs
- SerializationInfoEnumerator.cs
- TokenBasedSet.cs
- OperationContractGenerationContext.cs
- Main.cs
- HttpWebRequest.cs
- MethodToken.cs
- WindowAutomationPeer.cs
- LinqDataSourceSelectEventArgs.cs
- GradientStop.cs
- EncoderParameter.cs
- ViewManager.cs
- CancelAsyncOperationRequest.cs
- SectionInformation.cs
- Int32RectValueSerializer.cs
- Array.cs
- XmlIlTypeHelper.cs
- OutOfMemoryException.cs
- CacheAxisQuery.cs
- MDIClient.cs
- ControlSerializer.cs
- ShapingEngine.cs
- SmiMetaData.cs
- DesignSurfaceCollection.cs
- DataBinding.cs
- BindingListCollectionView.cs
- CaseInsensitiveOrdinalStringComparer.cs
- TextDecorations.cs
- XmlMessageFormatter.cs
- Operand.cs
- ThreadExceptionDialog.cs
- SatelliteContractVersionAttribute.cs
- Schema.cs
- UnsafePeerToPeerMethods.cs
- InstalledFontCollection.cs
- Win32NamedPipes.cs
- XmlObjectSerializerReadContext.cs
- ViewRendering.cs
- CompositionAdorner.cs
- XmlHierarchicalDataSourceView.cs
- CaseInsensitiveHashCodeProvider.cs
- XsdBuilder.cs
- ParameterModifier.cs
- HTTPNotFoundHandler.cs
- StylusLogic.cs
- BuildProviderCollection.cs
- Timeline.cs
- CodePageEncoding.cs
- sqlpipe.cs
- CodeArrayIndexerExpression.cs
- InvalidateEvent.cs
- CodeTypeDelegate.cs
- DefaultPrintController.cs
- XmlDataLoader.cs