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
- MetaModel.cs
- TextSpan.cs
- SortDescriptionCollection.cs
- TraceFilter.cs
- SymLanguageType.cs
- OdbcConnectionPoolProviderInfo.cs
- HyperLinkField.cs
- FixedSchema.cs
- Site.cs
- TransformerInfoCollection.cs
- ConfigXmlText.cs
- QuadraticEase.cs
- QilReplaceVisitor.cs
- WorkflowInstance.cs
- ProxyWebPartConnectionCollection.cs
- Registry.cs
- CaseCqlBlock.cs
- BitmapCacheBrush.cs
- OdbcDataReader.cs
- InputScopeAttribute.cs
- ExecutionEngineException.cs
- AdPostCacheSubstitution.cs
- AutomationElementCollection.cs
- Scripts.cs
- DesignerOptions.cs
- WebPartConnectionsConfigureVerb.cs
- RoleGroupCollectionEditor.cs
- LinqDataSourceView.cs
- Frame.cs
- RadioButton.cs
- GridViewSelectEventArgs.cs
- FlowLayout.cs
- ColumnHeaderConverter.cs
- ReflectionUtil.cs
- OleDbDataAdapter.cs
- Transform3D.cs
- LogSwitch.cs
- ApplicationGesture.cs
- EntityContainerEntitySet.cs
- PermissionSet.cs
- _PooledStream.cs
- AsynchronousChannelMergeEnumerator.cs
- AdornerLayer.cs
- ListBoxItemAutomationPeer.cs
- ReachDocumentPageSerializer.cs
- ControlBuilder.cs
- ClaimTypes.cs
- COM2ColorConverter.cs
- SqlDataRecord.cs
- InlineObject.cs
- CodeCastExpression.cs
- HitTestParameters3D.cs
- AsyncResult.cs
- CountAggregationOperator.cs
- DataGridViewRowCollection.cs
- PackageRelationshipCollection.cs
- OdbcParameter.cs
- SortedDictionary.cs
- PtsCache.cs
- CursorEditor.cs
- AssemblyAssociatedContentFileAttribute.cs
- TextRangeSerialization.cs
- CollectionsUtil.cs
- Pen.cs
- PixelFormat.cs
- PlatformCulture.cs
- DataList.cs
- CodeNamespaceCollection.cs
- NullPackagingPolicy.cs
- ImageListUtils.cs
- StreamAsIStream.cs
- NameTable.cs
- Rect3DConverter.cs
- Vector3DKeyFrameCollection.cs
- FormsAuthenticationTicket.cs
- VariableQuery.cs
- ListItemCollection.cs
- BatchServiceHost.cs
- Label.cs
- HostedTransportConfigurationBase.cs
- Repeater.cs
- X509CertificateCollection.cs
- PrePrepareMethodAttribute.cs
- TableLayoutSettingsTypeConverter.cs
- DataGridViewCell.cs
- XmlArrayItemAttributes.cs
- RectangleGeometry.cs
- WizardForm.cs
- ExtensibleClassFactory.cs
- SHA256.cs
- WindowsStatic.cs
- RecordManager.cs
- NavigatorOutput.cs
- CookieHandler.cs
- ResourcePermissionBaseEntry.cs
- TimeZone.cs
- SystemResources.cs
- XPathDocumentBuilder.cs
- XmlSerializerAssemblyAttribute.cs
- TextEncodedRawTextWriter.cs