Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / Net / System / Net / _NestedSingleAsyncResult.cs / 1 / _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
- GPRECTF.cs
- CopyNamespacesAction.cs
- HttpRequest.cs
- TextChangedEventArgs.cs
- GraphicsState.cs
- HtmlControlDesigner.cs
- SocketPermission.cs
- PropertyGridView.cs
- ListViewItem.cs
- ProgressBar.cs
- baseaxisquery.cs
- RequestBringIntoViewEventArgs.cs
- WebPartDisplayMode.cs
- smtpconnection.cs
- TextRangeEdit.cs
- Flowchart.cs
- SessionStateItemCollection.cs
- SegmentInfo.cs
- HttpResponseBase.cs
- MultiDataTrigger.cs
- StringValueSerializer.cs
- TreeNodeCollection.cs
- MessageFilterException.cs
- BamlCollectionHolder.cs
- SocketConnection.cs
- CatalogPartChrome.cs
- FixedSOMPage.cs
- TransactionInformation.cs
- OutputScopeManager.cs
- CurrentChangedEventManager.cs
- Table.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- PerfCounters.cs
- CryptoHelper.cs
- SR.cs
- ButtonColumn.cs
- QilGeneratorEnv.cs
- XmlDeclaration.cs
- TextModifierScope.cs
- OneToOneMappingSerializer.cs
- SqlBulkCopy.cs
- ApplicationSecurityInfo.cs
- OleDbParameter.cs
- SynchronizationContext.cs
- FloaterBaseParagraph.cs
- DES.cs
- Base64Stream.cs
- WebPartPersonalization.cs
- SocketAddress.cs
- PropertyKey.cs
- TokenBasedSetEnumerator.cs
- XmlWrappingReader.cs
- IteratorFilter.cs
- InvalidPipelineStoreException.cs
- NavigationFailedEventArgs.cs
- OrderPreservingPipeliningMergeHelper.cs
- System.Data.OracleClient_BID.cs
- basevalidator.cs
- ImageDrawing.cs
- RegexParser.cs
- COAUTHINFO.cs
- DesignerAutoFormatCollection.cs
- AttributeCollection.cs
- BaseCodeDomTreeGenerator.cs
- DataGridAutomationPeer.cs
- DataSvcMapFile.cs
- RequiredArgumentAttribute.cs
- RepeaterItem.cs
- SecurityContext.cs
- XmlUrlResolver.cs
- CodeSnippetCompileUnit.cs
- printdlgexmarshaler.cs
- TextTreeExtractElementUndoUnit.cs
- RuntimeConfig.cs
- MemoryPressure.cs
- ReaderWriterLockWrapper.cs
- SafeNativeMethods.cs
- SqlBulkCopy.cs
- TcpDuplicateContext.cs
- TypeConverterAttribute.cs
- HtmlTableCell.cs
- TextEditorContextMenu.cs
- SQLByte.cs
- TypeSystemProvider.cs
- ReadOnlyKeyedCollection.cs
- ThreadNeutralSemaphore.cs
- ChildDocumentBlock.cs
- SemanticBasicElement.cs
- TextUtf8RawTextWriter.cs
- BaseContextMenu.cs
- XhtmlBasicSelectionListAdapter.cs
- VBCodeProvider.cs
- PrimitiveSchema.cs
- ProxyGenerationError.cs
- LZCodec.cs
- ScrollContentPresenter.cs
- ElementInit.cs
- WebServiceData.cs
- GPPOINT.cs
- EventsTab.cs