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
- PageCodeDomTreeGenerator.cs
- SynchronizationLockException.cs
- RawStylusSystemGestureInputReport.cs
- DataGridColumnCollectionEditor.cs
- LinkAreaEditor.cs
- HostAdapter.cs
- CqlLexer.cs
- DtrList.cs
- StyleModeStack.cs
- DesignTimeVisibleAttribute.cs
- StringUtil.cs
- ViewBase.cs
- CachedCompositeFamily.cs
- PagedDataSource.cs
- EarlyBoundInfo.cs
- LinkedResourceCollection.cs
- Themes.cs
- FlowDocumentFormatter.cs
- ExpressionParser.cs
- XmlSchemaInfo.cs
- XmlLinkedNode.cs
- CurrentTimeZone.cs
- Logging.cs
- FormViewInsertedEventArgs.cs
- HandoffBehavior.cs
- CopyAttributesAction.cs
- HotSpotCollection.cs
- ResourceWriter.cs
- ImageListUtils.cs
- Memoizer.cs
- UnsafeNativeMethods.cs
- DoubleAnimation.cs
- DataGridViewIntLinkedList.cs
- TabPanel.cs
- FontFamilyConverter.cs
- KeyConverter.cs
- versioninfo.cs
- IteratorFilter.cs
- Scheduler.cs
- CompilationUnit.cs
- TypeResolver.cs
- JsonServiceDocumentSerializer.cs
- TypeConverterHelper.cs
- CatalogZoneBase.cs
- SegmentInfo.cs
- CachedRequestParams.cs
- TransformCryptoHandle.cs
- TextTreeRootTextBlock.cs
- PolyBezierSegmentFigureLogic.cs
- SQLDouble.cs
- EventSource.cs
- AsyncCompletedEventArgs.cs
- DetailsViewUpdateEventArgs.cs
- VirtualPathProvider.cs
- FileChangeNotifier.cs
- UTF7Encoding.cs
- StringKeyFrameCollection.cs
- IndexedString.cs
- EntityDataSourceDesigner.cs
- ProjectionPlanCompiler.cs
- HttpDictionary.cs
- SHA1CryptoServiceProvider.cs
- ValueSerializerAttribute.cs
- HtmlTableRowCollection.cs
- PolyLineSegment.cs
- URLAttribute.cs
- CustomSignedXml.cs
- SystemIPGlobalStatistics.cs
- ScrollBar.cs
- StatusBar.cs
- AssemblyFilter.cs
- FtpRequestCacheValidator.cs
- Update.cs
- TimeSpanParse.cs
- FontStretchConverter.cs
- WebSysDefaultValueAttribute.cs
- RegexParser.cs
- AlphabeticalEnumConverter.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- PeerTransportSecurityElement.cs
- FieldDescriptor.cs
- ValueType.cs
- EmptyControlCollection.cs
- RemotingHelper.cs
- RegistrationServices.cs
- StorageMappingFragment.cs
- DynamicRendererThreadManager.cs
- ValueType.cs
- AnimationClock.cs
- ServicePointManager.cs
- DataSourceView.cs
- ButtonBaseDesigner.cs
- _NestedMultipleAsyncResult.cs
- XamlPointCollectionSerializer.cs
- TextRunCacheImp.cs
- ToolStripMenuItemCodeDomSerializer.cs
- InfiniteTimeSpanConverter.cs
- DeferredTextReference.cs
- SystemTcpConnection.cs
- SimpleFileLog.cs