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
- RuntimeIdentifierPropertyAttribute.cs
- FlowLayout.cs
- ByteStorage.cs
- TableCell.cs
- CompareValidator.cs
- DocumentViewer.cs
- Tokenizer.cs
- BaseParser.cs
- XslCompiledTransform.cs
- OperationValidationEventArgs.cs
- OletxEnlistment.cs
- MenuRendererClassic.cs
- GlyphRunDrawing.cs
- ByteRangeDownloader.cs
- IOException.cs
- _Events.cs
- NotifyParentPropertyAttribute.cs
- DbProviderFactories.cs
- OperationFormatUse.cs
- EtwTrace.cs
- JoinCqlBlock.cs
- InputLanguage.cs
- OdbcParameter.cs
- QueryPageSettingsEventArgs.cs
- LocalIdKeyIdentifierClause.cs
- WeakReference.cs
- ApplicationInfo.cs
- WrapPanel.cs
- String.cs
- OperandQuery.cs
- ListViewEditEventArgs.cs
- CircleEase.cs
- DropDownList.cs
- DataControlReferenceCollection.cs
- EntityClientCacheEntry.cs
- FixedSOMLineCollection.cs
- IndexOutOfRangeException.cs
- ZipIORawDataFileBlock.cs
- EventLogEntry.cs
- GeneralTransform3DCollection.cs
- ClientOptions.cs
- SolidBrush.cs
- LambdaCompiler.Generated.cs
- SynchronizedDisposablePool.cs
- SafeRightsManagementPubHandle.cs
- MSHTMLHost.cs
- InfoCardConstants.cs
- PropertyValueEditor.cs
- DesignerLoader.cs
- MediaContext.cs
- NamespaceExpr.cs
- InstanceData.cs
- HttpRuntime.cs
- SqlOuterApplyReducer.cs
- TraceContext.cs
- filewebresponse.cs
- ConfigurationSchemaErrors.cs
- AppModelKnownContentFactory.cs
- WebServicesSection.cs
- ConfigXmlComment.cs
- NativeMethods.cs
- FixedTextSelectionProcessor.cs
- CorrelationTokenTypeConvertor.cs
- ItemDragEvent.cs
- SafeFindHandle.cs
- DesignerSerializationVisibilityAttribute.cs
- Emitter.cs
- SR.Designer.cs
- sqlser.cs
- CapiHashAlgorithm.cs
- UnaryExpression.cs
- BigInt.cs
- EntityClassGenerator.cs
- Module.cs
- ContextMenuStripGroup.cs
- SoapAttributeOverrides.cs
- EventDriven.cs
- IConvertible.cs
- ResourceManager.cs
- BitSet.cs
- ScopelessEnumAttribute.cs
- FileUtil.cs
- Visual3D.cs
- WorkflowIdleElement.cs
- ExtensionQuery.cs
- SeekStoryboard.cs
- ZoneButton.cs
- BrowserCapabilitiesCompiler.cs
- CompilerErrorCollection.cs
- X509WindowsSecurityToken.cs
- DataGridViewTopRowAccessibleObject.cs
- HebrewNumber.cs
- TextServicesContext.cs
- WinFormsSpinner.cs
- _LocalDataStoreMgr.cs
- TdsParserSafeHandles.cs
- DuplexChannelBinder.cs
- XmlCharType.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- ClientConvert.cs