Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AssemblyResourceLoader.cs
- UriPrefixTable.cs
- CryptoKeySecurity.cs
- OverflowException.cs
- oledbmetadatacollectionnames.cs
- TakeOrSkipQueryOperator.cs
- ContextQuery.cs
- DefaultWorkflowLoaderService.cs
- OracleFactory.cs
- AppDomainManager.cs
- _Semaphore.cs
- IdentifierService.cs
- Point3DCollection.cs
- CalendarTable.cs
- CommonGetThemePartSize.cs
- XXXInfos.cs
- serverconfig.cs
- BindingsCollection.cs
- WindowsAltTab.cs
- FilterException.cs
- WindowsListViewGroupHelper.cs
- TextSelectionProcessor.cs
- ProgressChangedEventArgs.cs
- handlecollector.cs
- XmlSerializationWriter.cs
- DropTarget.cs
- SQLString.cs
- TextFormatterContext.cs
- ConfigXmlComment.cs
- AssemblyResourceLoader.cs
- DateTimeConverter.cs
- HttpStaticObjectsCollectionWrapper.cs
- ValidationErrorEventArgs.cs
- StreamingContext.cs
- Attributes.cs
- EmptyEnumerator.cs
- SerializationSectionGroup.cs
- DataRowComparer.cs
- PlatformCulture.cs
- DispatcherEventArgs.cs
- TextFindEngine.cs
- LinearKeyFrames.cs
- SerializableAttribute.cs
- BindingList.cs
- GroupBoxRenderer.cs
- TableChangeProcessor.cs
- GregorianCalendarHelper.cs
- TextCharacters.cs
- CompareInfo.cs
- StylusPointPropertyId.cs
- MethodBuilder.cs
- KeyboardEventArgs.cs
- RelationalExpressions.cs
- WebPartConnectVerb.cs
- ClientBuildManager.cs
- UriScheme.cs
- XmlLinkedNode.cs
- LineServicesRun.cs
- ItemCollection.cs
- SimpleTextLine.cs
- TextEditorSpelling.cs
- Substitution.cs
- storepermissionattribute.cs
- IsolatedStorageFilePermission.cs
- Connector.cs
- HiddenFieldPageStatePersister.cs
- QueryTask.cs
- InputLanguage.cs
- DataMemberListEditor.cs
- IItemContainerGenerator.cs
- ExpressionNode.cs
- BitmapEffectInputData.cs
- RadioButton.cs
- DocobjHost.cs
- DispatcherExceptionFilterEventArgs.cs
- XhtmlBasicLinkAdapter.cs
- DataKey.cs
- ListSourceHelper.cs
- DataColumnChangeEvent.cs
- MulticastOption.cs
- PlatformNotSupportedException.cs
- ColumnBinding.cs
- UnsafeNativeMethods.cs
- ToolStripRenderer.cs
- WinCategoryAttribute.cs
- MatrixAnimationUsingPath.cs
- SqlDependency.cs
- ScalarType.cs
- WebBodyFormatMessageProperty.cs
- NaturalLanguageHyphenator.cs
- JsonObjectDataContract.cs
- XmlNamedNodeMap.cs
- CodeLabeledStatement.cs
- QueryCacheManager.cs
- MenuItem.cs
- FigureHelper.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- AdornedElementPlaceholder.cs
- DataContractSerializerServiceBehavior.cs
- CrossSiteScriptingValidation.cs