Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / _NestedSingleAsyncResult.cs / 1305376 / _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
- WsdlInspector.cs
- XmlToDatasetMap.cs
- CommandID.cs
- EventBuilder.cs
- ValidationRule.cs
- columnmapkeybuilder.cs
- ValidationManager.cs
- CompilerParameters.cs
- IncrementalHitTester.cs
- ProcessRequestAsyncResult.cs
- LambdaCompiler.Address.cs
- EdmProperty.cs
- BamlBinaryWriter.cs
- ItemAutomationPeer.cs
- TreeViewImageIndexConverter.cs
- SQLGuid.cs
- CubicEase.cs
- _ProxyChain.cs
- FaultDesigner.cs
- httpapplicationstate.cs
- EventlogProvider.cs
- ObjectDataSourceEventArgs.cs
- WinEventTracker.cs
- DefaultPrintController.cs
- MdiWindowListItemConverter.cs
- StylusEventArgs.cs
- ChildTable.cs
- MessageSecurityTokenVersion.cs
- SqlBulkCopy.cs
- CrossAppDomainChannel.cs
- SplineKeyFrames.cs
- FilterQuery.cs
- AccessKeyManager.cs
- AllMembershipCondition.cs
- FontCollection.cs
- ClassImporter.cs
- AlternateView.cs
- ToolStripSettings.cs
- ParameterCollection.cs
- basemetadatamappingvisitor.cs
- ItemCollection.cs
- CodePageEncoding.cs
- GetIndexBinder.cs
- IPHostEntry.cs
- HtmlInputPassword.cs
- PersonalizationEntry.cs
- WindowsEditBoxRange.cs
- LineUtil.cs
- MdImport.cs
- PropertyGroupDescription.cs
- HttpCachePolicyElement.cs
- XmlComplianceUtil.cs
- PostBackTrigger.cs
- NegotiateStream.cs
- Timeline.cs
- Geometry3D.cs
- LocalizableAttribute.cs
- RsaKeyIdentifierClause.cs
- MSAAEventDispatcher.cs
- WebRequest.cs
- mda.cs
- PeerNodeTraceRecord.cs
- Pen.cs
- OleDbConnectionInternal.cs
- XhtmlBasicPhoneCallAdapter.cs
- SqlParameter.cs
- TextTreeFixupNode.cs
- XmlSchemaCompilationSettings.cs
- WindowsFormsDesignerOptionService.cs
- CategoryNameCollection.cs
- SiteMap.cs
- CapabilitiesSection.cs
- VarInfo.cs
- ColorAnimation.cs
- MaskedTextProvider.cs
- DataView.cs
- AnalyzedTree.cs
- IdentityHolder.cs
- StylusPlugInCollection.cs
- ToolStripPanelSelectionBehavior.cs
- GridItem.cs
- ExceptionUtil.cs
- MenuItemCollection.cs
- PopupControlService.cs
- DataGridViewRowsAddedEventArgs.cs
- ContextMenuAutomationPeer.cs
- _HelperAsyncResults.cs
- MemberInfoSerializationHolder.cs
- SmiRequestExecutor.cs
- SqlResolver.cs
- MetadataItem.cs
- SqlStream.cs
- SettingsPropertyValueCollection.cs
- BaseTemplateBuildProvider.cs
- TraceXPathNavigator.cs
- Function.cs
- AttributeCollection.cs
- DurableEnlistmentState.cs
- InfoCardKeyedHashAlgorithm.cs
- Geometry.cs