Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- GuidelineSet.cs
- ReadOnlyDictionary.cs
- ReadingWritingEntityEventArgs.cs
- DataTemplate.cs
- _DigestClient.cs
- UpdateProgress.cs
- PrivateFontCollection.cs
- processwaithandle.cs
- TypeUtils.cs
- NetPeerTcpBindingElement.cs
- CommonObjectSecurity.cs
- PublisherMembershipCondition.cs
- MsmqUri.cs
- FragmentNavigationEventArgs.cs
- SecurityTokenContainer.cs
- TabItemWrapperAutomationPeer.cs
- XmlDictionaryString.cs
- StateDesigner.LayoutSelectionGlyph.cs
- XXXOnTypeBuilderInstantiation.cs
- TransformerConfigurationWizardBase.cs
- ObjectListCommandsPage.cs
- CounterSampleCalculator.cs
- SourceInterpreter.cs
- DBSqlParserTable.cs
- ProfileProvider.cs
- DataBoundControlActionList.cs
- FixedNode.cs
- TextWriterEngine.cs
- ScriptServiceAttribute.cs
- CookielessData.cs
- LabelLiteral.cs
- CmsUtils.cs
- MissingManifestResourceException.cs
- TypeInfo.cs
- Empty.cs
- PermissionSetTriple.cs
- PathSegmentCollection.cs
- RepeatBehavior.cs
- GenericRootAutomationPeer.cs
- ManagementScope.cs
- MemberListBinding.cs
- Hex.cs
- C14NUtil.cs
- InternalBase.cs
- X509Certificate2Collection.cs
- DynamicMethod.cs
- OdbcCommandBuilder.cs
- MessageContractMemberAttribute.cs
- ListGeneralPage.cs
- Int64.cs
- FunctionNode.cs
- FlatButtonAppearance.cs
- FlowchartDesignerCommands.cs
- TextLineResult.cs
- DataGridDetailsPresenter.cs
- GACMembershipCondition.cs
- HttpModule.cs
- JsonSerializer.cs
- MemberDescriptor.cs
- DmlSqlGenerator.cs
- InstanceData.cs
- DesignerAttribute.cs
- BoundPropertyEntry.cs
- MasterPageCodeDomTreeGenerator.cs
- QueryFunctions.cs
- SplashScreenNativeMethods.cs
- WebConfigurationManager.cs
- Single.cs
- OracleTransaction.cs
- SqlCachedBuffer.cs
- nulltextnavigator.cs
- ProfileEventArgs.cs
- CodeVariableReferenceExpression.cs
- ReadWriteObjectLock.cs
- ProfileGroupSettingsCollection.cs
- FontDifferentiator.cs
- MSG.cs
- WebServiceMethodData.cs
- MobileListItem.cs
- DiffuseMaterial.cs
- ToolboxItem.cs
- ToggleProviderWrapper.cs
- LinqDataSourceValidationException.cs
- DBConcurrencyException.cs
- ConsoleTraceListener.cs
- XmlSerializerOperationFormatter.cs
- Int32Animation.cs
- ICollection.cs
- Cell.cs
- _KerberosClient.cs
- HeaderCollection.cs
- CachedBitmap.cs
- CodeTypeReferenceExpression.cs
- UriGenerator.cs
- FileSystemWatcher.cs
- ScrollEventArgs.cs
- CacheAxisQuery.cs
- XmlSchemaNotation.cs
- ExtensionQuery.cs
- XmlCountingReader.cs