Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- UpdatePanel.cs
- RemotingAttributes.cs
- InfoCardCryptoHelper.cs
- InstanceNotReadyException.cs
- HttpBrowserCapabilitiesWrapper.cs
- Run.cs
- RunInstallerAttribute.cs
- CurrentChangedEventManager.cs
- Positioning.cs
- HelpInfo.cs
- Rotation3D.cs
- DecimalConstantAttribute.cs
- DiscoveryExceptionDictionary.cs
- ImportOptions.cs
- DmlSqlGenerator.cs
- HyperlinkAutomationPeer.cs
- mediapermission.cs
- InputLanguageSource.cs
- BamlVersionHeader.cs
- PageRequestManager.cs
- Timeline.cs
- StandardCommands.cs
- StringDictionaryCodeDomSerializer.cs
- ScriptControlManager.cs
- WebPartConnectVerb.cs
- IsolatedStorageFileStream.cs
- Stream.cs
- WindowsGraphicsCacheManager.cs
- LeafCellTreeNode.cs
- ResXDataNode.cs
- RsaElement.cs
- HostingEnvironmentException.cs
- TextStore.cs
- InternalUserCancelledException.cs
- HttpWebResponse.cs
- TaskForm.cs
- JsonServiceDocumentSerializer.cs
- HiddenFieldDesigner.cs
- SchemaEntity.cs
- AuthenticationModulesSection.cs
- NavigationCommands.cs
- CharacterShapingProperties.cs
- ValueExpressions.cs
- XmlSchemaExporter.cs
- BaseDataListActionList.cs
- ReliabilityContractAttribute.cs
- DashStyle.cs
- StylusPointPropertyUnit.cs
- DnsPermission.cs
- IntranetCredentialPolicy.cs
- DataGridViewTextBoxEditingControl.cs
- LinqDataSourceStatusEventArgs.cs
- AsymmetricKeyExchangeFormatter.cs
- ApplicationTrust.cs
- TextBoxRenderer.cs
- CounterCreationDataCollection.cs
- DescriptionAttribute.cs
- StaticSiteMapProvider.cs
- SerializationFieldInfo.cs
- EndOfStreamException.cs
- ArgumentOutOfRangeException.cs
- FontSource.cs
- HandleCollector.cs
- DataGridViewCellConverter.cs
- ControlAdapter.cs
- ExtendedPropertyCollection.cs
- WebResourceAttribute.cs
- InternalConfigConfigurationFactory.cs
- WindowsStatusBar.cs
- SoapIncludeAttribute.cs
- UnmanagedMarshal.cs
- Fault.cs
- CryptoProvider.cs
- DataGridAutoFormat.cs
- SourceChangedEventArgs.cs
- WaitHandle.cs
- CanExecuteRoutedEventArgs.cs
- SafeArrayTypeMismatchException.cs
- GeometryGroup.cs
- ThousandthOfEmRealDoubles.cs
- ObjectIDGenerator.cs
- AxParameterData.cs
- VisualSerializer.cs
- TraceHwndHost.cs
- ProcessInputEventArgs.cs
- ClrPerspective.cs
- ClickablePoint.cs
- DropDownList.cs
- XmlCountingReader.cs
- HierarchicalDataBoundControl.cs
- FramingDecoders.cs
- NodeLabelEditEvent.cs
- DrawingBrush.cs
- ClientScriptManager.cs
- TabControlCancelEvent.cs
- AllMembershipCondition.cs
- InstanceNormalEvent.cs
- ThreadAbortException.cs
- EncodingNLS.cs
- DocumentCollection.cs