Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- StringAttributeCollection.cs
- SortedDictionary.cs
- SystemIPInterfaceProperties.cs
- ReferenceService.cs
- Tablet.cs
- DataKeyCollection.cs
- ClientApiGenerator.cs
- DBConnection.cs
- ColorContext.cs
- remotingproxy.cs
- NativeMethods.cs
- WrappedReader.cs
- ThreadAttributes.cs
- StaticFileHandler.cs
- UnsafeNativeMethods.cs
- GacUtil.cs
- TraceShell.cs
- CookieParameter.cs
- ReflectionTypeLoadException.cs
- WebPartTransformer.cs
- XmlQueryOutput.cs
- Group.cs
- StreamAsIStream.cs
- FixedSOMTable.cs
- ConnectorDragDropGlyph.cs
- ScrollableControl.cs
- EnumMember.cs
- ControlPropertyNameConverter.cs
- DaylightTime.cs
- DictionaryEntry.cs
- ProfileProvider.cs
- EncryptedData.cs
- AttributeQuery.cs
- ImageBrush.cs
- ObjectHandle.cs
- DataGridViewColumnHeaderCell.cs
- TextInfo.cs
- SqlProvider.cs
- EpmHelper.cs
- ServiceSettingsResponseInfo.cs
- VectorKeyFrameCollection.cs
- Stopwatch.cs
- PluralizationServiceUtil.cs
- WebPartDescription.cs
- EventSourceCreationData.cs
- EntityDataSourceContainerNameConverter.cs
- ComAdminInterfaces.cs
- DebuggerAttributes.cs
- PipelineModuleStepContainer.cs
- GroupBox.cs
- TCEAdapterGenerator.cs
- GenericTypeParameterConverter.cs
- Sql8ConformanceChecker.cs
- BoolExpression.cs
- TextServicesCompartment.cs
- EntityFunctions.cs
- SqlFactory.cs
- HtmlSelect.cs
- XmlSchemaComplexContentRestriction.cs
- Container.cs
- InkSerializer.cs
- RegisteredHiddenField.cs
- WindowsImpersonationContext.cs
- OutputCacheModule.cs
- SqlMethodAttribute.cs
- Number.cs
- GridViewRowEventArgs.cs
- StaticDataManager.cs
- ScriptingJsonSerializationSection.cs
- ZoneIdentityPermission.cs
- HostExecutionContextManager.cs
- PageVisual.cs
- RestClientProxyHandler.cs
- Model3DCollection.cs
- DuplicateDetector.cs
- SectionVisual.cs
- ObjectQuery.cs
- ExecutionProperties.cs
- SrgsSubset.cs
- ISO2022Encoding.cs
- InputManager.cs
- GeneralTransformGroup.cs
- DataComponentGenerator.cs
- SystemUnicastIPAddressInformation.cs
- ErrorFormatterPage.cs
- RegexStringValidatorAttribute.cs
- CapabilitiesAssignment.cs
- FileLogRecordHeader.cs
- UTF8Encoding.cs
- ControlParser.cs
- ServiceHostingEnvironmentSection.cs
- HtmlTitle.cs
- TreeViewDesigner.cs
- SessionEndedEventArgs.cs
- SpeakInfo.cs
- OutOfMemoryException.cs
- ReturnEventArgs.cs
- ComponentSerializationService.cs
- XamlDesignerSerializationManager.cs
- WorkflowItemPresenter.cs