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
- CodeGenerationManager.cs
- TaskResultSetter.cs
- WindowsClaimSet.cs
- SoundPlayer.cs
- DesignerLinkAdapter.cs
- CodeAccessPermission.cs
- TemplateManager.cs
- ExecutionEngineException.cs
- UIElement.cs
- AutomationAttributeInfo.cs
- CompositeDesignerAccessibleObject.cs
- RefType.cs
- EventLogPermissionEntryCollection.cs
- ValidationErrorCollection.cs
- CryptoConfig.cs
- EdmProviderManifest.cs
- EntityTypeEmitter.cs
- ProtectedProviderSettings.cs
- AssemblyName.cs
- PrivilegedConfigurationManager.cs
- PasswordTextNavigator.cs
- SplitterCancelEvent.cs
- SqlDataSourceStatusEventArgs.cs
- QilPatternVisitor.cs
- CollectionChange.cs
- InvalidFilterCriteriaException.cs
- LabelLiteral.cs
- formatter.cs
- mediaeventshelper.cs
- SqlFunctionAttribute.cs
- SystemUdpStatistics.cs
- RecognizedPhrase.cs
- ServiceThrottlingElement.cs
- BoundColumn.cs
- InvalidOleVariantTypeException.cs
- RowUpdatingEventArgs.cs
- TemporaryBitmapFile.cs
- LineInfo.cs
- AppLevelCompilationSectionCache.cs
- FullTextState.cs
- TableRow.cs
- ConfigurationException.cs
- RunInstallerAttribute.cs
- hresults.cs
- LabelTarget.cs
- TextSyndicationContentKindHelper.cs
- HScrollBar.cs
- RoleExceptions.cs
- ImplicitInputBrush.cs
- OleDbErrorCollection.cs
- RuntimeVariableList.cs
- WebPartCloseVerb.cs
- AutoResetEvent.cs
- MimeTextImporter.cs
- KeyboardDevice.cs
- EtwTrace.cs
- MsdtcWrapper.cs
- Assembly.cs
- InternalSendMessage.cs
- ValidatorAttribute.cs
- Number.cs
- ArgumentNullException.cs
- BinaryObjectInfo.cs
- SqlBuffer.cs
- ButtonFieldBase.cs
- DeviceContexts.cs
- ConfigurationElementProperty.cs
- ReflectionUtil.cs
- ReadOnlyPropertyMetadata.cs
- WmlMobileTextWriter.cs
- TransformDescriptor.cs
- SubclassTypeValidatorAttribute.cs
- Baml6ConstructorInfo.cs
- MetadataException.cs
- AttributeXamlType.cs
- CodeComment.cs
- XmlSerializerAssemblyAttribute.cs
- _NestedSingleAsyncResult.cs
- DataGridViewDataErrorEventArgs.cs
- IfElseDesigner.xaml.cs
- ApplicationException.cs
- SelectionListComponentEditor.cs
- RemotingException.cs
- DataObjectMethodAttribute.cs
- GeneratedContractType.cs
- ThrowHelper.cs
- DesignerHelpers.cs
- XmlLanguageConverter.cs
- _NetworkingPerfCounters.cs
- AssertSection.cs
- WinCategoryAttribute.cs
- XamlInterfaces.cs
- COM2Enum.cs
- DataGridItemEventArgs.cs
- SQLInt32.cs
- TableFieldsEditor.cs
- TimeStampChecker.cs
- SqlDataSourceCache.cs
- InfoCardListRequest.cs
- PopOutPanel.cs