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
- DbgCompiler.cs
- ExceptionHandlerDesigner.cs
- MailAddress.cs
- unsafenativemethodsother.cs
- ExceptionHelpers.cs
- ColumnBinding.cs
- InputManager.cs
- HostingPreferredMapPath.cs
- WebServiceFault.cs
- FolderLevelBuildProviderCollection.cs
- GenerateScriptTypeAttribute.cs
- CursorConverter.cs
- WorkflowStateRollbackService.cs
- ItemCollection.cs
- Matrix.cs
- HttpHandlerActionCollection.cs
- TemplateBamlTreeBuilder.cs
- Size.cs
- ISCIIEncoding.cs
- MenuTracker.cs
- OdbcCommandBuilder.cs
- FontInfo.cs
- Encoder.cs
- EncryptedPackageFilter.cs
- Dictionary.cs
- ByteViewer.cs
- FixedStringLookup.cs
- SimpleBitVector32.cs
- MembershipAdapter.cs
- _Events.cs
- MaskDesignerDialog.cs
- BinaryCommonClasses.cs
- TextBoxRenderer.cs
- hresults.cs
- SoapServerMethod.cs
- MetadataConversionError.cs
- SoapElementAttribute.cs
- ObjectStateEntry.cs
- DataGridCommandEventArgs.cs
- UnaryQueryOperator.cs
- SendMessageContent.cs
- Serializer.cs
- MenuBase.cs
- RenderContext.cs
- ProgramPublisher.cs
- ConvertTextFrag.cs
- TagPrefixAttribute.cs
- StandardRuntimeEnumValidatorAttribute.cs
- TypeUtils.cs
- FontWeights.cs
- Subset.cs
- Transform3DCollection.cs
- MetadataItemCollectionFactory.cs
- EnumType.cs
- ActivationServices.cs
- StateManagedCollection.cs
- EntityTypeEmitter.cs
- StrongTypingException.cs
- x509utils.cs
- TemplateNameScope.cs
- ControlPropertyNameConverter.cs
- HostProtectionException.cs
- PageOutputColor.cs
- GPStream.cs
- GuidelineCollection.cs
- AppendHelper.cs
- FontFamilyIdentifier.cs
- TdsParserSessionPool.cs
- XPathDocumentNavigator.cs
- DbUpdateCommandTree.cs
- URLBuilder.cs
- LiteralTextParser.cs
- Translator.cs
- XmlChoiceIdentifierAttribute.cs
- RegexMatch.cs
- TypographyProperties.cs
- XamlStream.cs
- StateMachineHelpers.cs
- TypeDescriptionProviderAttribute.cs
- EmptyEnumerator.cs
- BehaviorDragDropEventArgs.cs
- SqlWorkflowPersistenceService.cs
- CatalogZone.cs
- Point.cs
- Int32AnimationUsingKeyFrames.cs
- RelationshipEnd.cs
- InternalSendMessage.cs
- ResourceReferenceExpression.cs
- TypeNameConverter.cs
- CodeChecksumPragma.cs
- HostingEnvironmentSection.cs
- UserControlCodeDomTreeGenerator.cs
- Publisher.cs
- WebPartConnectVerb.cs
- Utils.cs
- BaseParser.cs
- ManipulationDeltaEventArgs.cs
- AutoCompleteStringCollection.cs
- EmissiveMaterial.cs
- DialogResultConverter.cs