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
- PropertyInfoSet.cs
- Geometry.cs
- SqlFunctionAttribute.cs
- CheckableControlBaseAdapter.cs
- BCryptSafeHandles.cs
- Drawing.cs
- Operator.cs
- DelayedRegex.cs
- CharConverter.cs
- JavaScriptObjectDeserializer.cs
- ToolStripDropDownItem.cs
- ListControl.cs
- System.Data_BID.cs
- DirectionalLight.cs
- GridPatternIdentifiers.cs
- ObjectDisposedException.cs
- Activity.cs
- RegexParser.cs
- ExpressionNormalizer.cs
- SecurityContext.cs
- DynamicValueConverter.cs
- securitycriticaldata.cs
- FormsAuthenticationUserCollection.cs
- SrgsRuleRef.cs
- TextTreeRootNode.cs
- ListViewGroupConverter.cs
- URLAttribute.cs
- CodeExporter.cs
- IIS7UserPrincipal.cs
- Metafile.cs
- PolyQuadraticBezierSegment.cs
- AddressUtility.cs
- MarshalByRefObject.cs
- HitTestFilterBehavior.cs
- DataGridViewCellCancelEventArgs.cs
- SystemIcons.cs
- OracleFactory.cs
- XmlSerializationGeneratedCode.cs
- StreamAsIStream.cs
- XmlCollation.cs
- TextEditorParagraphs.cs
- StrongNameSignatureInformation.cs
- BatchParser.cs
- BinaryUtilClasses.cs
- RoleBoolean.cs
- CheckBoxPopupAdapter.cs
- TreeNodeConverter.cs
- XamlToRtfParser.cs
- BitmapEffectDrawing.cs
- HttpModuleCollection.cs
- GestureRecognizer.cs
- WindowsAuthenticationModule.cs
- RuntimeConfigurationRecord.cs
- ControlIdConverter.cs
- SqlFactory.cs
- ProviderCollection.cs
- CrossAppDomainChannel.cs
- HitTestResult.cs
- Propagator.Evaluator.cs
- ResolvedKeyFrameEntry.cs
- SourceInterpreter.cs
- SqlDependencyUtils.cs
- DoubleAnimationClockResource.cs
- UserControl.cs
- GeometryGroup.cs
- Convert.cs
- activationcontext.cs
- Scene3D.cs
- Validator.cs
- SequentialWorkflowHeaderFooter.cs
- WindowsFormsSynchronizationContext.cs
- CompilerWrapper.cs
- PlatformCulture.cs
- X509CertificateRecipientServiceCredential.cs
- FixedSOMFixedBlock.cs
- DbMetaDataCollectionNames.cs
- ActivitiesCollection.cs
- ProxyAttribute.cs
- GridViewSelectEventArgs.cs
- OdbcInfoMessageEvent.cs
- PrintDialogException.cs
- Separator.cs
- PostBackTrigger.cs
- TextDecorationCollectionConverter.cs
- RootBuilder.cs
- EventHandlersDesigner.cs
- DialogResultConverter.cs
- FrameworkRichTextComposition.cs
- TextAdaptor.cs
- ListViewItemSelectionChangedEvent.cs
- IRCollection.cs
- HtmlEncodedRawTextWriter.cs
- ConfigurationFileMap.cs
- AlignmentYValidation.cs
- SqlSupersetValidator.cs
- SubMenuStyleCollection.cs
- Model3DGroup.cs
- OracleDataReader.cs
- BrushConverter.cs
- ImageConverter.cs