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
- GacUtil.cs
- TaiwanLunisolarCalendar.cs
- UserPreferenceChangingEventArgs.cs
- DataSet.cs
- SqlMethodTransformer.cs
- ModelTreeManager.cs
- RowTypePropertyElement.cs
- MissingFieldException.cs
- TextEffect.cs
- ExpressionsCollectionEditor.cs
- SQLBinary.cs
- TextServicesCompartmentEventSink.cs
- ObjectMaterializedEventArgs.cs
- CapacityStreamGeometryContext.cs
- TransformerTypeCollection.cs
- RotateTransform3D.cs
- EastAsianLunisolarCalendar.cs
- SQLMembershipProvider.cs
- GuidelineSet.cs
- DataSourceControl.cs
- ResourceDisplayNameAttribute.cs
- RemotingConfiguration.cs
- DispatcherTimer.cs
- ZoneButton.cs
- WebServiceMethodData.cs
- SqlXml.cs
- ViewManager.cs
- DrawingBrush.cs
- AttributeAction.cs
- IsolatedStorageException.cs
- RelationshipConstraintValidator.cs
- FormattedText.cs
- MessageVersion.cs
- UnescapedXmlDiagnosticData.cs
- HttpHandlersSection.cs
- CngProperty.cs
- PeerApplicationLaunchInfo.cs
- MethodExpr.cs
- Section.cs
- ComboBox.cs
- DesignerView.cs
- MasterPage.cs
- KnownTypes.cs
- ExpressionBinding.cs
- CollectionConverter.cs
- VectorAnimationUsingKeyFrames.cs
- IOThreadTimer.cs
- SendReply.cs
- MeshGeometry3D.cs
- DecimalConverter.cs
- WebPartDisplayModeEventArgs.cs
- Glyph.cs
- ReturnType.cs
- PropertyInfoSet.cs
- CodeBinaryOperatorExpression.cs
- CultureTableRecord.cs
- MailHeaderInfo.cs
- CodeTryCatchFinallyStatement.cs
- CodeGotoStatement.cs
- hwndwrapper.cs
- CLRBindingWorker.cs
- UpdateRecord.cs
- TimeSpanStorage.cs
- HeaderedContentControl.cs
- DataSourceCache.cs
- SchemaCollectionPreprocessor.cs
- AuthenticatingEventArgs.cs
- WsdlServiceChannelBuilder.cs
- Psha1DerivedKeyGeneratorHelper.cs
- File.cs
- SystemIcmpV4Statistics.cs
- KeyValuePairs.cs
- EntityCommandCompilationException.cs
- HttpCookieCollection.cs
- EpmContentSerializer.cs
- FullTextLine.cs
- TextPenaltyModule.cs
- RadioButtonPopupAdapter.cs
- SequentialWorkflowHeaderFooter.cs
- ServiceModelConfigurationSectionGroup.cs
- SafeEventLogWriteHandle.cs
- TreeView.cs
- OptimisticConcurrencyException.cs
- XmlElement.cs
- sitestring.cs
- DiscoveryClientChannelFactory.cs
- SmiXetterAccessMap.cs
- NavigationWindow.cs
- HttpHandlerAction.cs
- TransactedReceiveScope.cs
- UpDownBaseDesigner.cs
- FormViewPageEventArgs.cs
- GeneralTransformGroup.cs
- RuntimeConfigLKG.cs
- SortAction.cs
- XmlSchemaObject.cs
- SqlEnums.cs
- XmlElement.cs
- X509Certificate2Collection.cs
- MarkupObject.cs