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
- MultiBinding.cs
- CopyOfAction.cs
- TreeNodeClickEventArgs.cs
- DataGridViewColumnDesigner.cs
- ThreadInterruptedException.cs
- PropertyKey.cs
- QuaternionRotation3D.cs
- PermissionToken.cs
- PrivilegeNotHeldException.cs
- XmlUrlResolver.cs
- TabletCollection.cs
- DirectoryInfo.cs
- JpegBitmapEncoder.cs
- FileDialog.cs
- DispatcherSynchronizationContext.cs
- EventWaitHandleSecurity.cs
- ListViewDeleteEventArgs.cs
- SymmetricCryptoHandle.cs
- ColorConvertedBitmap.cs
- PersonalizablePropertyEntry.cs
- WindowClosedEventArgs.cs
- IntSumAggregationOperator.cs
- RegisteredExpandoAttribute.cs
- SqlLiftWhereClauses.cs
- StrongNameUtility.cs
- ItemCollection.cs
- ChangeTracker.cs
- CodeDirectoryCompiler.cs
- PatternMatchRules.cs
- VirtualPath.cs
- DynamicValidator.cs
- ObjectDataSourceMethodEventArgs.cs
- InputLangChangeEvent.cs
- TableAutomationPeer.cs
- DocumentReferenceCollection.cs
- InheritedPropertyChangedEventArgs.cs
- SqlProviderManifest.cs
- Int32Converter.cs
- WebPartHeaderCloseVerb.cs
- AxHost.cs
- XmlUtf8RawTextWriter.cs
- ElementNotAvailableException.cs
- SqlDataSourceView.cs
- FtpCachePolicyElement.cs
- StateManagedCollection.cs
- SelectorItemAutomationPeer.cs
- XmlExceptionHelper.cs
- arc.cs
- AudioDeviceOut.cs
- CreateUserWizardStep.cs
- LoadItemsEventArgs.cs
- StatusBarDesigner.cs
- TypeSource.cs
- SubclassTypeValidatorAttribute.cs
- SqlDependencyUtils.cs
- SettingsSection.cs
- DuplicateWaitObjectException.cs
- CryptoApi.cs
- EntityDataSourceReferenceGroup.cs
- AuthenticodeSignatureInformation.cs
- MissingFieldException.cs
- CompleteWizardStep.cs
- Matrix3DConverter.cs
- CryptoKeySecurity.cs
- ToolBar.cs
- TypeConvertions.cs
- PerformanceCounterManager.cs
- XmlElementCollection.cs
- EntityCollection.cs
- TypefaceCollection.cs
- EventManager.cs
- XmlWriter.cs
- SqlDataSourceConfigureSelectPanel.cs
- Token.cs
- GeneralTransform3DCollection.cs
- JsonReaderDelegator.cs
- BasePattern.cs
- EntityViewGenerationAttribute.cs
- SiteOfOriginPart.cs
- SqlUtils.cs
- InlinedAggregationOperatorEnumerator.cs
- SchemaNamespaceManager.cs
- SvcMapFile.cs
- SemanticResultValue.cs
- OleDbException.cs
- DocumentPaginator.cs
- ZipIORawDataFileBlock.cs
- DataGridViewCellStyleEditor.cs
- OracleEncoding.cs
- AppDomainShutdownMonitor.cs
- EncoderParameters.cs
- Int32CAMarshaler.cs
- OpacityConverter.cs
- DocumentViewerConstants.cs
- TextChangedEventArgs.cs
- SqlMethodCallConverter.cs
- LambdaCompiler.ControlFlow.cs
- WindowInteractionStateTracker.cs
- ListItemCollection.cs
- SystemIPv6InterfaceProperties.cs