Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- IfAction.cs
- SubMenuStyle.cs
- WebPartDisplayMode.cs
- followingsibling.cs
- autovalidator.cs
- BaseDataList.cs
- Tuple.cs
- _NetworkingPerfCounters.cs
- Wildcard.cs
- Comparer.cs
- VectorKeyFrameCollection.cs
- UpDownBase.cs
- ConsoleTraceListener.cs
- Nullable.cs
- CurrentChangingEventManager.cs
- NumberFormatter.cs
- DataGridHeaderBorder.cs
- FontNameEditor.cs
- FixedSOMSemanticBox.cs
- PrintingPermissionAttribute.cs
- TraceHandlerErrorFormatter.cs
- Int32Converter.cs
- XpsPackagingPolicy.cs
- XmlElementCollection.cs
- Literal.cs
- IdentityNotMappedException.cs
- SecurityContext.cs
- SqlBuffer.cs
- XmlArrayAttribute.cs
- ItemDragEvent.cs
- StatusBarDrawItemEvent.cs
- TextEditorThreadLocalStore.cs
- StrongNamePublicKeyBlob.cs
- XmlArrayAttribute.cs
- ValueSerializer.cs
- SqlMultiplexer.cs
- Stylus.cs
- EventProperty.cs
- InnerItemCollectionView.cs
- TrackingExtract.cs
- ConstrainedDataObject.cs
- MobileUITypeEditor.cs
- XamlPoint3DCollectionSerializer.cs
- Size.cs
- RangeValuePattern.cs
- RetriableClipboard.cs
- _BasicClient.cs
- DocumentSchemaValidator.cs
- CrossAppDomainChannel.cs
- GAC.cs
- DesignBinding.cs
- StringFreezingAttribute.cs
- WebPartEditorCancelVerb.cs
- FatalException.cs
- LogicalExpressionEditor.cs
- PolyLineSegment.cs
- WebPartTracker.cs
- Control.cs
- SqlRemoveConstantOrderBy.cs
- ImageAttributes.cs
- StorageInfo.cs
- QilInvokeLateBound.cs
- DataGridPageChangedEventArgs.cs
- DatePicker.cs
- HtmlTextArea.cs
- SchemaCollectionCompiler.cs
- _LazyAsyncResult.cs
- ArrayWithOffset.cs
- FontFamilyIdentifier.cs
- documentation.cs
- ValueUtilsSmi.cs
- Semaphore.cs
- MethodToken.cs
- RouteParametersHelper.cs
- DigitalSignatureProvider.cs
- SiteMapHierarchicalDataSourceView.cs
- ExtractedStateEntry.cs
- HMACSHA384.cs
- DataGridViewUtilities.cs
- DateTime.cs
- Vector3DAnimationUsingKeyFrames.cs
- SafeIUnknown.cs
- CalendarTable.cs
- GeneralTransform3DGroup.cs
- XamlFilter.cs
- IndependentAnimationStorage.cs
- ToolStripDropDownMenu.cs
- MenuItem.cs
- SrgsRulesCollection.cs
- HostingEnvironmentSection.cs
- RichTextBox.cs
- FontStretch.cs
- StringToken.cs
- ConnectionManagementElementCollection.cs
- TransformerConfigurationWizardBase.cs
- ZipPackage.cs
- SecureUICommand.cs
- BuildProvider.cs
- Types.cs
- infer.cs