Code:
/ FX-1434 / FX-1434 / 1.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
- HttpResponseHeader.cs
- DataGridViewRow.cs
- DnsPermission.cs
- BinarySerializer.cs
- IndexOutOfRangeException.cs
- IdentityModelDictionary.cs
- StateBag.cs
- CompilerGlobalScopeAttribute.cs
- NameScopePropertyAttribute.cs
- CheckBoxRenderer.cs
- XmlDataSource.cs
- MD5.cs
- DataGridViewComponentPropertyGridSite.cs
- CounterSample.cs
- ThemeDirectoryCompiler.cs
- ImportedNamespaceContextItem.cs
- OleDbConnectionInternal.cs
- TrackBar.cs
- StaticContext.cs
- SqlFormatter.cs
- SQLString.cs
- DataObject.cs
- PtsCache.cs
- ToolStripPanelRow.cs
- Knowncolors.cs
- ProjectionPruner.cs
- JavaScriptString.cs
- LineBreakRecord.cs
- DuplicateContext.cs
- IndentTextWriter.cs
- GridItemCollection.cs
- Utilities.cs
- MatrixStack.cs
- PeerToPeerException.cs
- FunctionDefinition.cs
- SurrogateChar.cs
- Stack.cs
- TemplateControlParser.cs
- Triplet.cs
- DataSourceSelectArguments.cs
- VectorAnimationUsingKeyFrames.cs
- StructuralCache.cs
- TemplateNameScope.cs
- RepeaterItem.cs
- MultiTargetingUtil.cs
- HandlerFactoryCache.cs
- ToolStripOverflow.cs
- SelectionItemPattern.cs
- Converter.cs
- ControlLocalizer.cs
- LoginView.cs
- PeerPresenceInfo.cs
- CopyOnWriteList.cs
- CodeLabeledStatement.cs
- QueryStringParameter.cs
- EndpointAddressAugust2004.cs
- AttributeInfo.cs
- TdsParserStaticMethods.cs
- MediaCommands.cs
- OLEDB_Enum.cs
- SubpageParaClient.cs
- StringConverter.cs
- FilteredDataSetHelper.cs
- CodeMemberMethod.cs
- DataRecord.cs
- DesignerSerializationOptionsAttribute.cs
- BordersPage.cs
- Identifier.cs
- WindowsImpersonationContext.cs
- PopupControlService.cs
- TextRange.cs
- NetTcpSectionData.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- ImageIndexConverter.cs
- webclient.cs
- DataGridViewBand.cs
- ThicknessAnimationBase.cs
- Transform3D.cs
- TextOutput.cs
- SchemaType.cs
- FrameworkElement.cs
- DbgUtil.cs
- OLEDB_Util.cs
- FollowerQueueCreator.cs
- MethodCallExpression.cs
- ResourceDictionary.cs
- XmlReaderSettings.cs
- ClientFormsIdentity.cs
- VectorValueSerializer.cs
- ParallelLoopState.cs
- GridViewUpdatedEventArgs.cs
- ConfigXmlAttribute.cs
- PrincipalPermission.cs
- Attributes.cs
- RootBrowserWindow.cs
- X509AsymmetricSecurityKey.cs
- HwndAppCommandInputProvider.cs
- PointConverter.cs
- UrlMappingsModule.cs
- RequiredFieldValidator.cs