Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SvcMapFile.cs
- mansign.cs
- Walker.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- DockPanel.cs
- ServiceAuthorizationManager.cs
- DiscoveryClientRequestChannel.cs
- CompareValidator.cs
- _ChunkParse.cs
- CheckBox.cs
- ExcludePathInfo.cs
- SchemaImporter.cs
- AutomationElement.cs
- hresults.cs
- ParseHttpDate.cs
- StylusEditingBehavior.cs
- ExpressionParser.cs
- FormViewActionList.cs
- OracleColumn.cs
- LicenseManager.cs
- Brush.cs
- DetailsViewRow.cs
- CollectionChangeEventArgs.cs
- AppLevelCompilationSectionCache.cs
- ErrorRuntimeConfig.cs
- WaitForChangedResult.cs
- TextBoxAutomationPeer.cs
- Path.cs
- XmlAttributeCollection.cs
- CommandValueSerializer.cs
- TemplateControl.cs
- EventMappingSettings.cs
- PersonalizationEntry.cs
- XmlWriterSettings.cs
- XmlAttributeCache.cs
- XmlValueConverter.cs
- CodeCatchClause.cs
- ListBase.cs
- ProfileGroupSettingsCollection.cs
- SecurityHelper.cs
- DataIdProcessor.cs
- LinqDataSourceEditData.cs
- PointHitTestParameters.cs
- ToolStripGrip.cs
- GridViewDeleteEventArgs.cs
- RtfFormatStack.cs
- DataExpression.cs
- MetadataProperty.cs
- Material.cs
- CriticalFinalizerObject.cs
- ComponentDispatcherThread.cs
- URLMembershipCondition.cs
- UpnEndpointIdentityExtension.cs
- AttributeEmitter.cs
- CodeMethodReturnStatement.cs
- TableLayout.cs
- ThemeInfoAttribute.cs
- PopupEventArgs.cs
- AdapterUtil.cs
- SimpleBitVector32.cs
- Boolean.cs
- ConnectionInterfaceCollection.cs
- SoapClientMessage.cs
- DataTemplateSelector.cs
- DesignBindingPropertyDescriptor.cs
- SchemaCollectionPreprocessor.cs
- AuthenticationManager.cs
- FaultDescription.cs
- SchemaMerger.cs
- TreeNodeMouseHoverEvent.cs
- SystemInfo.cs
- SQLStringStorage.cs
- SqlInternalConnection.cs
- NetPipeSectionData.cs
- Point4D.cs
- CookieParameter.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- DisableDpiAwarenessAttribute.cs
- GridViewColumnHeaderAutomationPeer.cs
- SliderAutomationPeer.cs
- DetailsViewRow.cs
- TemplateKeyConverter.cs
- TextEffect.cs
- BackgroundFormatInfo.cs
- InternalRelationshipCollection.cs
- ExecutionContext.cs
- KeyInterop.cs
- PartialCachingControl.cs
- TypeResolvingOptions.cs
- FixedPageStructure.cs
- GenericEnumerator.cs
- BinaryObjectWriter.cs
- WorkflowDefinitionDispenser.cs
- TextContainerChangedEventArgs.cs
- OLEDB_Enum.cs
- Validator.cs
- InstanceCompleteException.cs
- DrawingState.cs
- SerializationFieldInfo.cs
- GraphicsState.cs