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 / _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
- SchemaSetCompiler.cs
- HttpPostProtocolImporter.cs
- WebConfigurationHostFileChange.cs
- RegexStringValidator.cs
- ComponentResourceKey.cs
- ToolStripButton.cs
- XmlEntity.cs
- OraclePermission.cs
- TextBlock.cs
- FunctionCommandText.cs
- ButtonBaseAutomationPeer.cs
- PriorityBindingExpression.cs
- XmlArrayItemAttribute.cs
- ColumnHeaderCollectionEditor.cs
- Focus.cs
- Point3D.cs
- EventMappingSettingsCollection.cs
- CommonProperties.cs
- XmlBoundElement.cs
- SQLSingle.cs
- ButtonStandardAdapter.cs
- DBNull.cs
- CodeDOMProvider.cs
- TextElementEnumerator.cs
- BindingExpressionUncommonField.cs
- TableLayoutSettings.cs
- GorillaCodec.cs
- XmlSchemaSimpleContentRestriction.cs
- SelectionRange.cs
- SizeChangedInfo.cs
- ECDiffieHellmanCng.cs
- ListItem.cs
- CodeDirectoryCompiler.cs
- IndexedEnumerable.cs
- Internal.cs
- Grid.cs
- CharAnimationUsingKeyFrames.cs
- BorderGapMaskConverter.cs
- Attributes.cs
- IndicCharClassifier.cs
- Empty.cs
- UnicastIPAddressInformationCollection.cs
- _AcceptOverlappedAsyncResult.cs
- PrincipalPermission.cs
- PermissionSet.cs
- RemoteWebConfigurationHost.cs
- ResourceAssociationTypeEnd.cs
- BaseInfoTable.cs
- XmlEntityReference.cs
- EllipseGeometry.cs
- ReadingWritingEntityEventArgs.cs
- DataGridViewCellParsingEventArgs.cs
- System.Data_BID.cs
- SQLConvert.cs
- TypeConstant.cs
- PeerCollaborationPermission.cs
- BaseDataListPage.cs
- TdsParserSessionPool.cs
- WebBrowserPermission.cs
- RewritingPass.cs
- XmlEnumAttribute.cs
- RangeBase.cs
- HttpConfigurationSystem.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- ContractCodeDomInfo.cs
- IteratorFilter.cs
- Vector3DValueSerializer.cs
- CharStorage.cs
- TriggerBase.cs
- SyntaxCheck.cs
- CapabilitiesUse.cs
- ScrollItemPatternIdentifiers.cs
- FixedSOMPageElement.cs
- CopyEncoder.cs
- InvalidOperationException.cs
- DBAsyncResult.cs
- CallContext.cs
- RemoteTokenFactory.cs
- CompositeControl.cs
- Baml2006ReaderSettings.cs
- OperationContext.cs
- HttpResponseInternalBase.cs
- ColumnMap.cs
- DataGridItemCollection.cs
- Array.cs
- UDPClient.cs
- SQLByte.cs
- InvalidWMPVersionException.cs
- StreamAsIStream.cs
- IncrementalHitTester.cs
- XLinq.cs
- SystemColorTracker.cs
- FontFamilyValueSerializer.cs
- TextDecorationCollection.cs
- PointCollectionValueSerializer.cs
- TextServicesContext.cs
- xdrvalidator.cs
- DbConnectionPoolGroup.cs
- WindowsFormsHostAutomationPeer.cs
- DynamicILGenerator.cs