Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- EdgeModeValidation.cs
- EntityType.cs
- RequestQueryProcessor.cs
- GeometryHitTestParameters.cs
- RequestNavigateEventArgs.cs
- _ListenerResponseStream.cs
- CompositeControl.cs
- xml.cs
- DocumentViewerHelper.cs
- EntryIndex.cs
- DbDeleteCommandTree.cs
- BinHexEncoding.cs
- ProcessHost.cs
- DelegatingConfigHost.cs
- TemplateControlParser.cs
- SystemThemeKey.cs
- DefaultHttpHandler.cs
- ParserContext.cs
- _UriSyntax.cs
- ImageMetadata.cs
- GenericWebPart.cs
- WebPartMovingEventArgs.cs
- HttpContextServiceHost.cs
- ServiceBuildProvider.cs
- TypeTypeConverter.cs
- SurrogateDataContract.cs
- BuiltInExpr.cs
- HebrewCalendar.cs
- ExceptionHelpers.cs
- ConstructorBuilder.cs
- StringArrayConverter.cs
- WeakHashtable.cs
- LogStream.cs
- Selection.cs
- IgnoreSectionHandler.cs
- DefinitionBase.cs
- updateconfighost.cs
- DataGridPagerStyle.cs
- Monitor.cs
- ASCIIEncoding.cs
- RequestQueryProcessor.cs
- FileFormatException.cs
- MsmqIntegrationInputMessage.cs
- ServiceReference.cs
- PhonemeEventArgs.cs
- RelationshipDetailsCollection.cs
- ObjectKeyFrameCollection.cs
- SourceSwitch.cs
- EdmType.cs
- EDesignUtil.cs
- MatrixKeyFrameCollection.cs
- SessionStateContainer.cs
- VScrollProperties.cs
- WindowAutomationPeer.cs
- XmlSchemaAttributeGroupRef.cs
- QuaternionAnimation.cs
- InputScope.cs
- XmlExpressionDumper.cs
- RemoveStoryboard.cs
- ListView.cs
- UniqueContractNameValidationBehavior.cs
- CryptoApi.cs
- OracleInfoMessageEventArgs.cs
- FlowLayout.cs
- DigitShape.cs
- ActionFrame.cs
- RepeaterItemEventArgs.cs
- DataSourceControl.cs
- SkewTransform.cs
- CompilerInfo.cs
- TripleDESCryptoServiceProvider.cs
- DeflateStreamAsyncResult.cs
- KnownBoxes.cs
- input.cs
- SqlFacetAttribute.cs
- BitmapImage.cs
- wmiprovider.cs
- RestClientProxyHandler.cs
- EdmTypeAttribute.cs
- InkCollectionBehavior.cs
- TripleDES.cs
- NativeObjectSecurity.cs
- CharEnumerator.cs
- NumericUpDownAccelerationCollection.cs
- WasHttpHandlersInstallComponent.cs
- PointUtil.cs
- CopyEncoder.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- GlyphRunDrawing.cs
- MethodAccessException.cs
- HashMembershipCondition.cs
- CodeEventReferenceExpression.cs
- Condition.cs
- LabelEditEvent.cs
- ApplicationHost.cs
- DeclarativeConditionsCollection.cs
- RawContentTypeMapper.cs
- Globals.cs
- FixedSOMContainer.cs
- DeploymentSectionCache.cs