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
- EventHandlerList.cs
- WriteTimeStream.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- OleDbInfoMessageEvent.cs
- SectionVisual.cs
- ModelItemKeyValuePair.cs
- WebPartManagerInternals.cs
- PropertyChangedEventManager.cs
- RecognitionResult.cs
- ToolTip.cs
- WpfXamlMember.cs
- NumericUpDownAcceleration.cs
- ObjectDataSourceMethodEventArgs.cs
- SelectionEditor.cs
- XPathDescendantIterator.cs
- WS2007FederationHttpBindingElement.cs
- HMACSHA256.cs
- ServiceModelEnumValidatorAttribute.cs
- MetadataArtifactLoaderCompositeFile.cs
- DeferredBinaryDeserializerExtension.cs
- AnimationClock.cs
- PrintPreviewGraphics.cs
- EncoderExceptionFallback.cs
- DataRowChangeEvent.cs
- RoutedCommand.cs
- TimeSpanParse.cs
- DataObjectSettingDataEventArgs.cs
- sqlcontext.cs
- TextSchema.cs
- FixedSchema.cs
- XmlDocumentFragment.cs
- ConnectionStringsExpressionBuilder.cs
- WindowsScrollBar.cs
- FlowDocumentScrollViewer.cs
- ComponentDispatcherThread.cs
- DispatcherHooks.cs
- AutomationElement.cs
- followingquery.cs
- BrowserDefinition.cs
- XsdDateTime.cs
- DoubleConverter.cs
- XmlSchemaAttributeGroupRef.cs
- XmlComment.cs
- AudioDeviceOut.cs
- AutomationElementCollection.cs
- _LoggingObject.cs
- Currency.cs
- BitmapSizeOptions.cs
- SiteMapNodeItem.cs
- HttpProcessUtility.cs
- XmlBinaryWriter.cs
- Parameter.cs
- xmlsaver.cs
- ResourceExpressionBuilder.cs
- AstTree.cs
- XmlSchemaAttributeGroup.cs
- Queue.cs
- FacetChecker.cs
- AnnotationAdorner.cs
- TreeViewCancelEvent.cs
- WindowsListViewGroupHelper.cs
- PreloadedPackages.cs
- BindableAttribute.cs
- InternalConfigHost.cs
- PowerModeChangedEventArgs.cs
- AlternationConverter.cs
- FrameworkElementFactory.cs
- CodeBinaryOperatorExpression.cs
- EntityConnectionStringBuilder.cs
- MenuItemBinding.cs
- CalendarDay.cs
- ExpressionVisitor.cs
- ActivityExecutor.cs
- DiagnosticsElement.cs
- NetworkAddressChange.cs
- PageContentAsyncResult.cs
- IgnoreSectionHandler.cs
- Compiler.cs
- GridPattern.cs
- IImplicitResourceProvider.cs
- DataGridCellInfo.cs
- BitmapSource.cs
- DataColumnChangeEvent.cs
- ParallelForEach.cs
- BoolExpression.cs
- PropertyItemInternal.cs
- ToolboxDataAttribute.cs
- WebPermission.cs
- Metafile.cs
- GridToolTip.cs
- UserValidatedEventArgs.cs
- DrawTreeNodeEventArgs.cs
- BooleanFunctions.cs
- SrgsRulesCollection.cs
- DataGridViewCellCancelEventArgs.cs
- EastAsianLunisolarCalendar.cs
- CommandID.cs
- DataServiceRequest.cs
- BasePropertyDescriptor.cs
- MaxMessageSizeStream.cs