Code:
/ FX-1434 / FX-1434 / 1.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
- SynchronizedPool.cs
- RegexRunner.cs
- InProcStateClientManager.cs
- DrawItemEvent.cs
- QuerySettings.cs
- activationcontext.cs
- ExpressionServices.cs
- Parsers.cs
- CollectionView.cs
- AsyncResult.cs
- smtppermission.cs
- StringSorter.cs
- VisualStyleInformation.cs
- Matrix.cs
- CodeNamespaceCollection.cs
- LicenseManager.cs
- ComNativeDescriptor.cs
- QueryContinueDragEventArgs.cs
- ListItemConverter.cs
- ProcessStartInfo.cs
- FillBehavior.cs
- TypeDefinition.cs
- DataView.cs
- Reference.cs
- __ComObject.cs
- WizardPanelChangingEventArgs.cs
- coordinatorfactory.cs
- EntityAdapter.cs
- CodeSnippetExpression.cs
- WebPartTransformerCollection.cs
- ReflectEventDescriptor.cs
- XmlSchemaException.cs
- GeneralTransform3DTo2DTo3D.cs
- Terminate.cs
- OleStrCAMarshaler.cs
- CheckBoxField.cs
- QilNode.cs
- PassportAuthentication.cs
- SafeFileMappingHandle.cs
- ForEachAction.cs
- ExecutedRoutedEventArgs.cs
- DynamicObject.cs
- HttpGetClientProtocol.cs
- EntityTransaction.cs
- NumericPagerField.cs
- RoleServiceManager.cs
- ClientFactory.cs
- SerializationFieldInfo.cs
- MyContact.cs
- DataGridGeneralPage.cs
- TransformerInfoCollection.cs
- FixedSOMFixedBlock.cs
- ConnectionStringsSection.cs
- KeyGestureValueSerializer.cs
- NameObjectCollectionBase.cs
- DefaultBindingPropertyAttribute.cs
- RowType.cs
- OleDbCommandBuilder.cs
- MatrixKeyFrameCollection.cs
- ProtocolElement.cs
- BitVec.cs
- ContextStack.cs
- cookiecollection.cs
- FixedSOMLineCollection.cs
- DefaultAsyncDataDispatcher.cs
- SoapCodeExporter.cs
- DesignerDataStoredProcedure.cs
- LabelTarget.cs
- DropShadowEffect.cs
- SqlDataSourceCustomCommandEditor.cs
- OdbcUtils.cs
- DecoratedNameAttribute.cs
- ParameterEditorUserControl.cs
- XmlBoundElement.cs
- CompilerError.cs
- Validator.cs
- InputLanguageCollection.cs
- TemplateColumn.cs
- GeometryGroup.cs
- TextServicesDisplayAttribute.cs
- GenericPrincipal.cs
- FormsAuthenticationEventArgs.cs
- _PooledStream.cs
- GenericUriParser.cs
- RoleServiceManager.cs
- WorkflowInstanceContextProvider.cs
- XmlNavigatorFilter.cs
- BindingExpressionBase.cs
- EntityChangedParams.cs
- TypeDescriptionProvider.cs
- GreenMethods.cs
- BamlLocalizableResourceKey.cs
- AddToCollection.cs
- WebPartVerbsEventArgs.cs
- PasswordPropertyTextAttribute.cs
- RegexGroupCollection.cs
- PeekCompletedEventArgs.cs
- SrgsGrammarCompiler.cs
- TraceHandlerErrorFormatter.cs
- OpenFileDialog.cs