Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / _NestedSingleAsyncResult.cs / 1305376 / _NestedSingleAsyncResult.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 NestedSingleAsyncResult : 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 byte[] Buffer; internal int Offset; internal int Size; // // Constructors // // Completed in advance. internal NestedSingleAsyncResult(Object asyncObject, Object asyncState, AsyncCallback asyncCallback, object result) : base(asyncObject, asyncState, asyncCallback, result) { } internal NestedSingleAsyncResult(Object asyncObject, Object asyncState, AsyncCallback asyncCallback, byte[] buffer, int offset, int size) : base( asyncObject, asyncState, asyncCallback ) { Buffer = buffer; Offset = offset; Size = size; } }; // class NestedAsyncResult } // 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 NestedSingleAsyncResult : 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 byte[] Buffer; internal int Offset; internal int Size; // // Constructors // // Completed in advance. internal NestedSingleAsyncResult(Object asyncObject, Object asyncState, AsyncCallback asyncCallback, object result) : base(asyncObject, asyncState, asyncCallback, result) { } internal NestedSingleAsyncResult(Object asyncObject, Object asyncState, AsyncCallback asyncCallback, byte[] buffer, int offset, int size) : base( asyncObject, asyncState, asyncCallback ) { Buffer = buffer; Offset = offset; Size = size; } }; // class NestedAsyncResult } // 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
- FontConverter.cs
- BamlRecordReader.cs
- FrameworkContentElementAutomationPeer.cs
- EnumUnknown.cs
- XdrBuilder.cs
- ResourceContainer.cs
- assemblycache.cs
- SignerInfo.cs
- InvalidProgramException.cs
- SQLSingle.cs
- OneOfElement.cs
- GlyphRun.cs
- NonClientArea.cs
- ResponseBodyWriter.cs
- DataGridViewCellValidatingEventArgs.cs
- SoapCodeExporter.cs
- AspCompat.cs
- ToolStripRenderer.cs
- HttpAsyncResult.cs
- _PooledStream.cs
- DragDropHelper.cs
- TextTabProperties.cs
- Convert.cs
- CustomWebEventKey.cs
- EpmContentSerializerBase.cs
- ThaiBuddhistCalendar.cs
- OdbcCommandBuilder.cs
- TemplateManager.cs
- WebScriptEnablingBehavior.cs
- CodeObject.cs
- tibetanshape.cs
- COM2ColorConverter.cs
- DesigntimeLicenseContextSerializer.cs
- RevocationPoint.cs
- InstancePersistenceEvent.cs
- MenuItemStyleCollectionEditor.cs
- VersionedStreamOwner.cs
- BaseTemplateCodeDomTreeGenerator.cs
- Point3DKeyFrameCollection.cs
- InputReportEventArgs.cs
- UnsafeNativeMethods.cs
- FlowLayout.cs
- DataSourceView.cs
- __ConsoleStream.cs
- TailCallAnalyzer.cs
- SchemaImporter.cs
- TransformedBitmap.cs
- PageCodeDomTreeGenerator.cs
- ImageButton.cs
- PartManifestEntry.cs
- metadatamappinghashervisitor.cs
- DPTypeDescriptorContext.cs
- CopyCodeAction.cs
- OdbcStatementHandle.cs
- ToolStripTextBox.cs
- ContainerUtilities.cs
- ColumnReorderedEventArgs.cs
- AxisAngleRotation3D.cs
- MatrixUtil.cs
- NonParentingControl.cs
- UpdateDelegates.Generated.cs
- DataGridViewIntLinkedList.cs
- LockCookie.cs
- Root.cs
- TextElementEnumerator.cs
- CodeArrayCreateExpression.cs
- CssTextWriter.cs
- WorkflowViewStateService.cs
- RuntimeEnvironment.cs
- DisplayInformation.cs
- printdlgexmarshaler.cs
- EntityDataSourceQueryBuilder.cs
- UniqueID.cs
- SocketManager.cs
- MenuEventArgs.cs
- ThemeableAttribute.cs
- ContextMenuService.cs
- DebugView.cs
- UnsupportedPolicyOptionsException.cs
- XMLUtil.cs
- AcceptorSessionSymmetricMessageSecurityProtocol.cs
- LastQueryOperator.cs
- ErrorFormatter.cs
- VectorCollectionValueSerializer.cs
- SchemaImporterExtension.cs
- DataBoundControlAdapter.cs
- WebPartsSection.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- TCEAdapterGenerator.cs
- Graph.cs
- RegexWorker.cs
- DigitShape.cs
- IIS7WorkerRequest.cs
- SafeNativeMethods.cs
- PeerPresenceInfo.cs
- MobileContainerDesigner.cs
- SendSecurityHeader.cs
- GlobalizationAssembly.cs
- FlowDocument.cs
- Point4DValueSerializer.cs