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
- StyleHelper.cs
- TextControl.cs
- ReferentialConstraintRoleElement.cs
- WebConfigManager.cs
- XmlDataSourceNodeDescriptor.cs
- EnumUnknown.cs
- NTAccount.cs
- KerberosTokenFactoryCredential.cs
- CodeTypeDeclarationCollection.cs
- ClientFormsAuthenticationCredentials.cs
- CapabilitiesState.cs
- OrderPreservingMergeHelper.cs
- WebZone.cs
- DataGridColumnCollection.cs
- TypePresenter.xaml.cs
- dataprotectionpermissionattribute.cs
- Duration.cs
- SocketConnection.cs
- BindingManagerDataErrorEventArgs.cs
- ReferencedType.cs
- Thread.cs
- UniqueConstraint.cs
- LOSFormatter.cs
- SQLBinaryStorage.cs
- FlowPosition.cs
- ListViewCommandEventArgs.cs
- TcpStreams.cs
- RuleAction.cs
- securitycriticaldataformultiplegetandset.cs
- SecurityElement.cs
- FieldAccessException.cs
- OptimizerPatterns.cs
- XmlSchemaSequence.cs
- CompareValidator.cs
- LayoutEvent.cs
- Version.cs
- MatrixAnimationBase.cs
- ExecutedRoutedEventArgs.cs
- AbstractDataSvcMapFileLoader.cs
- FixedDocument.cs
- DiscoveryClientChannelBase.cs
- SamlSubjectStatement.cs
- MetadataSource.cs
- ImmutableCollection.cs
- Rule.cs
- HashHelpers.cs
- DataBoundControl.cs
- TaiwanCalendar.cs
- AssemblySettingAttributes.cs
- HttpRuntime.cs
- tibetanshape.cs
- DbDataRecord.cs
- TraceContext.cs
- XmlNamespaceDeclarationsAttribute.cs
- ExclusiveTcpListener.cs
- RegexCompilationInfo.cs
- SocketException.cs
- GCHandleCookieTable.cs
- XmlQueryContext.cs
- RecordBuilder.cs
- BStrWrapper.cs
- PhysicalFontFamily.cs
- StateBag.cs
- WebAdminConfigurationHelper.cs
- RuntimeConfig.cs
- TimersDescriptionAttribute.cs
- ContainsRowNumberChecker.cs
- RadioButtonBaseAdapter.cs
- InternalConfigSettingsFactory.cs
- FormatVersion.cs
- DateTimeValueSerializerContext.cs
- XmlParser.cs
- PriorityBindingExpression.cs
- TransactionContextValidator.cs
- DataGridParentRows.cs
- FillBehavior.cs
- TrustLevelCollection.cs
- PropertyChangeTracker.cs
- StringCollection.cs
- WebPermission.cs
- SmiEventSink_Default.cs
- SqlCacheDependencyDatabaseCollection.cs
- ParameterCollection.cs
- base64Transforms.cs
- PerformanceCounterLib.cs
- FunctionDetailsReader.cs
- SourceFilter.cs
- DBCommandBuilder.cs
- SqlParameter.cs
- XmlSchemaAppInfo.cs
- HealthMonitoringSectionHelper.cs
- TextBox.cs
- EllipticalNodeOperations.cs
- RegisteredExpandoAttribute.cs
- ReferencedAssembly.cs
- GridViewEditEventArgs.cs
- SystemTcpStatistics.cs
- BaseParser.cs
- PropertyChangeTracker.cs
- TextFormatterHost.cs