Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ResourceReader.cs
- Viewport3DVisual.cs
- ExpiredSecurityTokenException.cs
- RenderingEventArgs.cs
- WhitespaceRule.cs
- HelpEvent.cs
- HtmlInputSubmit.cs
- EventOpcode.cs
- HitTestParameters3D.cs
- XmlSchemaSet.cs
- SafeHandles.cs
- SocketSettings.cs
- GACMembershipCondition.cs
- CopyAttributesAction.cs
- TextDecoration.cs
- WorkflowInstanceProvider.cs
- DetailsViewUpdatedEventArgs.cs
- ToolStripOverflowButton.cs
- ExpressionBinding.cs
- TreeBuilder.cs
- HandlerBase.cs
- _Win32.cs
- CookielessHelper.cs
- FillErrorEventArgs.cs
- XmlUtil.cs
- WindowsListViewGroupSubsetLink.cs
- HandleInitializationContext.cs
- ExpressionBuilderCollection.cs
- WebConfigurationHost.cs
- TrustManager.cs
- DbException.cs
- DynamicUpdateCommand.cs
- EmptyCollection.cs
- EntityDataSourceDesigner.cs
- LicFileLicenseProvider.cs
- DataRowComparer.cs
- StorageTypeMapping.cs
- BaseParser.cs
- BinHexEncoder.cs
- columnmapfactory.cs
- AttributeSetAction.cs
- SqlDataSourceStatusEventArgs.cs
- VirtualPathProvider.cs
- CallSiteBinder.cs
- M3DUtil.cs
- SaveLedgerEntryRequest.cs
- __FastResourceComparer.cs
- AppliedDeviceFiltersEditor.cs
- CodeCommentStatementCollection.cs
- SqlUDTStorage.cs
- WebBrowser.cs
- DebugControllerThread.cs
- ObjectPersistData.cs
- HyperLinkField.cs
- EventKeyword.cs
- SchemaConstraints.cs
- CheckBox.cs
- CodeDirectionExpression.cs
- RefreshPropertiesAttribute.cs
- SQLInt64Storage.cs
- MediaElementAutomationPeer.cs
- Clipboard.cs
- SQLGuidStorage.cs
- BindMarkupExtensionSerializer.cs
- DependentList.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- Symbol.cs
- BinaryFormatterWriter.cs
- WebPartConnectionsCancelEventArgs.cs
- OrderPreservingPipeliningSpoolingTask.cs
- ThrowHelper.cs
- TextControlDesigner.cs
- ZoneButton.cs
- HexParser.cs
- EncoderBestFitFallback.cs
- AudioException.cs
- XmlComplianceUtil.cs
- AndCondition.cs
- TreeViewDesigner.cs
- SafeFileMapViewHandle.cs
- CacheModeValueSerializer.cs
- ProjectionRewriter.cs
- XmlNodeChangedEventManager.cs
- OdbcDataReader.cs
- Wildcard.cs
- SafeIUnknown.cs
- M3DUtil.cs
- TaskFormBase.cs
- SynchronizedChannelCollection.cs
- StylusEditingBehavior.cs
- EarlyBoundInfo.cs
- TextUtf8RawTextWriter.cs
- Stacktrace.cs
- Decoder.cs
- Light.cs
- NullableDoubleMinMaxAggregationOperator.cs
- GridSplitter.cs
- Localizer.cs
- EnumerableCollectionView.cs
- ControlPropertyNameConverter.cs