Code:
/ DotNET / DotNET / 8.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
- TextBox.cs
- ResourceCategoryAttribute.cs
- OptionalRstParameters.cs
- HyperLink.cs
- Encoder.cs
- ServiceHandle.cs
- WindowsImpersonationContext.cs
- LinqDataSourceDeleteEventArgs.cs
- RichTextBox.cs
- PreviewPrintController.cs
- CodeSpit.cs
- DbProviderServices.cs
- GifBitmapDecoder.cs
- UserUseLicenseDictionaryLoader.cs
- ItemCheckedEvent.cs
- _LocalDataStore.cs
- NonDualMessageSecurityOverHttp.cs
- Socket.cs
- _NegoState.cs
- SoapExtensionTypeElementCollection.cs
- BinaryMethodMessage.cs
- SubMenuStyleCollection.cs
- DLinqColumnProvider.cs
- ResourceExpressionBuilder.cs
- BoundColumn.cs
- TableDetailsCollection.cs
- EventRecordWrittenEventArgs.cs
- ContentWrapperAttribute.cs
- Visitor.cs
- FormatException.cs
- AuthorizationPolicyTypeElementCollection.cs
- Scene3D.cs
- ExitEventArgs.cs
- WebConfigurationHost.cs
- TextSerializer.cs
- DataControlField.cs
- MemberRestriction.cs
- IsolationInterop.cs
- XmlParser.cs
- SmtpDigestAuthenticationModule.cs
- ListBindingConverter.cs
- Point3DCollection.cs
- TrackingProfileDeserializationException.cs
- M3DUtil.cs
- Msmq4SubqueuePoisonHandler.cs
- JsonQNameDataContract.cs
- HtmlUtf8RawTextWriter.cs
- Pipe.cs
- ExtenderControl.cs
- DataGridViewColumnCollection.cs
- BitmapEffectGroup.cs
- AnimationException.cs
- DrawListViewColumnHeaderEventArgs.cs
- OlePropertyStructs.cs
- SqlConnection.cs
- ConfigurationPropertyAttribute.cs
- EntityCommandCompilationException.cs
- SqlError.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- DataGridToolTip.cs
- ImmutableObjectAttribute.cs
- DefaultValueTypeConverter.cs
- GeneratedContractType.cs
- HorizontalAlignConverter.cs
- ProxyWebPartConnectionCollection.cs
- IconConverter.cs
- DesignerToolboxInfo.cs
- BindingEditor.xaml.cs
- ReflectionTypeLoadException.cs
- EmptyEnumerator.cs
- DataGridViewCell.cs
- ControlBuilder.cs
- DynamicValueConverter.cs
- RuntimeIdentifierPropertyAttribute.cs
- NoClickablePointException.cs
- DataTableMapping.cs
- PageParserFilter.cs
- ClientSponsor.cs
- ItemChangedEventArgs.cs
- SystemWebExtensionsSectionGroup.cs
- StubHelpers.cs
- Transactions.cs
- BamlLocalizabilityResolver.cs
- InfiniteIntConverter.cs
- DecoderBestFitFallback.cs
- Border.cs
- GridViewHeaderRowPresenter.cs
- EditorOptionAttribute.cs
- Grid.cs
- ComplexPropertyEntry.cs
- validation.cs
- WebDisplayNameAttribute.cs
- Literal.cs
- SplineQuaternionKeyFrame.cs
- IDReferencePropertyAttribute.cs
- WmpBitmapDecoder.cs
- BehaviorEditorPart.cs
- DataGridViewRow.cs
- DataConnectionHelper.cs
- SimpleApplicationHost.cs