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
- ParsedAttributeCollection.cs
- XmlDataSourceNodeDescriptor.cs
- TabletDevice.cs
- DynamicControlParameter.cs
- ConfigPathUtility.cs
- DataObject.cs
- CodeDirectoryCompiler.cs
- UIElement3D.cs
- DynamicDocumentPaginator.cs
- InputReport.cs
- PathStreamGeometryContext.cs
- Exceptions.cs
- GridItem.cs
- GrabHandleGlyph.cs
- DayRenderEvent.cs
- compensatingcollection.cs
- ResourcesBuildProvider.cs
- CodeAttachEventStatement.cs
- ResourceCodeDomSerializer.cs
- BamlLocalizableResourceKey.cs
- UserMapPath.cs
- FlowLayoutPanel.cs
- LogLogRecord.cs
- SqlProvider.cs
- ColumnWidthChangedEvent.cs
- IgnoreFileBuildProvider.cs
- SqlStream.cs
- IDataContractSurrogate.cs
- InputScope.cs
- ClassHandlersStore.cs
- DurableRuntimeValidator.cs
- ModifierKeysValueSerializer.cs
- ReaderWriterLockWrapper.cs
- CompiledIdentityConstraint.cs
- HMACRIPEMD160.cs
- InputBinding.cs
- RelatedCurrencyManager.cs
- UpdatePanel.cs
- SafeEventHandle.cs
- ObjectKeyFrameCollection.cs
- TreeNodeMouseHoverEvent.cs
- CommunicationObjectFaultedException.cs
- CustomAttribute.cs
- ColumnWidthChangedEvent.cs
- SimpleColumnProvider.cs
- CallbackValidatorAttribute.cs
- SqlBulkCopyColumnMappingCollection.cs
- HyperLink.cs
- XNameConverter.cs
- EntityCommandExecutionException.cs
- HttpServerVarsCollection.cs
- Ref.cs
- BulletedListEventArgs.cs
- ZoneLinkButton.cs
- RtfToXamlReader.cs
- AccessDataSourceView.cs
- VirtualDirectoryMapping.cs
- TaskFactory.cs
- ServiceInfo.cs
- LogLogRecordHeader.cs
- SimpleHandlerBuildProvider.cs
- WorkflowViewService.cs
- SkinBuilder.cs
- HtmlInputRadioButton.cs
- SQLInt64Storage.cs
- TransformerInfo.cs
- OdbcDataReader.cs
- DataControlButton.cs
- AnimationException.cs
- DefaultBindingPropertyAttribute.cs
- XmlDataCollection.cs
- NavigationExpr.cs
- UITypeEditor.cs
- InvalidPipelineStoreException.cs
- PagerSettings.cs
- MissingFieldException.cs
- SyndicationSerializer.cs
- DragDeltaEventArgs.cs
- storepermissionattribute.cs
- InboundActivityHelper.cs
- MinimizableAttributeTypeConverter.cs
- RoleGroupCollection.cs
- GetCardDetailsRequest.cs
- LogicalCallContext.cs
- FormViewRow.cs
- AmbientValueAttribute.cs
- ToolStripOverflowButton.cs
- TimelineClockCollection.cs
- SqlUtils.cs
- Vector.cs
- CodeNamespace.cs
- QuaternionRotation3D.cs
- HtmlElement.cs
- ImageSourceConverter.cs
- ComponentResourceKeyConverter.cs
- SQLChars.cs
- AutomationElementCollection.cs
- ToolStripCodeDomSerializer.cs
- PrimitiveXmlSerializers.cs
- FileDialogPermission.cs