Code:
/ FX-1434 / FX-1434 / 1.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
- FileDialog_Vista_Interop.cs
- TemplateControlParser.cs
- StylusButtonCollection.cs
- StringKeyFrameCollection.cs
- CodeSubDirectory.cs
- DropShadowBitmapEffect.cs
- FrameworkContextData.cs
- PropertyChangingEventArgs.cs
- ClientSettingsSection.cs
- DataGridViewImageCell.cs
- ConstantExpression.cs
- SiteMapNode.cs
- CodeExpressionCollection.cs
- OpenFileDialog.cs
- XmlBoundElement.cs
- UInt64Converter.cs
- RemoteWebConfigurationHostServer.cs
- TextureBrush.cs
- InfocardExtendedInformationEntry.cs
- FrameworkReadOnlyPropertyMetadata.cs
- NamedElement.cs
- BookmarkList.cs
- TypeToArgumentTypeConverter.cs
- Vector3DCollectionConverter.cs
- TextTreeInsertUndoUnit.cs
- TextStore.cs
- TypeUnloadedException.cs
- GAC.cs
- UnionCodeGroup.cs
- TypeReference.cs
- Animatable.cs
- BitmapInitialize.cs
- DetailsViewUpdatedEventArgs.cs
- HttpHandler.cs
- ApplyImportsAction.cs
- DataGridViewCellValidatingEventArgs.cs
- Models.cs
- ErrorHandler.cs
- WSSecureConversationDec2005.cs
- XsdDateTime.cs
- RemotingAttributes.cs
- VirtualPathProvider.cs
- Camera.cs
- TextBoxBase.cs
- EncryptedReference.cs
- SubMenuStyle.cs
- DbConnectionPoolOptions.cs
- XmlComplianceUtil.cs
- ExpressionNode.cs
- FactoryId.cs
- HttpClientChannel.cs
- XmlComment.cs
- XmlTextReader.cs
- TabControl.cs
- Buffer.cs
- FileLoadException.cs
- COM2Enum.cs
- InstanceDataCollection.cs
- ToolboxService.cs
- MasterPageParser.cs
- HostDesigntimeLicenseContext.cs
- DataGridViewHitTestInfo.cs
- TriggerAction.cs
- XmlCharCheckingReader.cs
- MetaData.cs
- PasswordRecoveryAutoFormat.cs
- XmlDataCollection.cs
- HtmlShim.cs
- TextureBrush.cs
- AbsoluteQuery.cs
- ContextMenuStrip.cs
- GenericUriParser.cs
- EmbeddedObject.cs
- AuthStoreRoleProvider.cs
- XmlArrayItemAttribute.cs
- DrawingContextDrawingContextWalker.cs
- EventLogInternal.cs
- WebBrowserHelper.cs
- ObjectListItem.cs
- DataControlField.cs
- XmlArrayItemAttributes.cs
- OptionalMessageQuery.cs
- HandlerMappingMemo.cs
- TemplateBuilder.cs
- DesignerMetadata.cs
- SHA384.cs
- ElementHostAutomationPeer.cs
- JoinQueryOperator.cs
- ObjectListGeneralPage.cs
- ScrollProviderWrapper.cs
- DefaultObjectMappingItemCollection.cs
- UrlMappingCollection.cs
- CharConverter.cs
- EncoderExceptionFallback.cs
- DelayedRegex.cs
- GlobalProxySelection.cs
- AutoGeneratedFieldProperties.cs
- ColorTransform.cs
- Viewport3DAutomationPeer.cs
- CookieProtection.cs