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
- SortedList.cs
- EventSetterHandlerConverter.cs
- TranslateTransform3D.cs
- SafeNativeMethods.cs
- MemoryPressure.cs
- FileCodeGroup.cs
- RequestDescription.cs
- WebPartTransformerCollection.cs
- SamlSecurityToken.cs
- HtmlButton.cs
- TranslateTransform.cs
- Camera.cs
- IndependentAnimationStorage.cs
- ClosableStream.cs
- CompilerErrorCollection.cs
- WebServiceHostFactory.cs
- XamlBuildTaskServices.cs
- ColumnCollection.cs
- Knowncolors.cs
- FieldReference.cs
- CqlErrorHelper.cs
- ExpressionVisitorHelpers.cs
- FlowPanelDesigner.cs
- GenericTypeParameterConverter.cs
- RawTextInputReport.cs
- BamlRecords.cs
- InternalConfigEventArgs.cs
- ApplicationSecurityManager.cs
- Metafile.cs
- _CommandStream.cs
- TextServicesCompartment.cs
- TemplateApplicationHelper.cs
- DelayedRegex.cs
- TypeConverter.cs
- EntityDataSourceChangedEventArgs.cs
- WebBrowserPermission.cs
- FrameworkRichTextComposition.cs
- ScrollProviderWrapper.cs
- PersonalizationState.cs
- TopClause.cs
- TreeNodeBindingCollection.cs
- StrongNameHelpers.cs
- RestHandler.cs
- FlowDocumentView.cs
- PlatformCulture.cs
- DataStreamFromComStream.cs
- IncrementalHitTester.cs
- EdmComplexTypeAttribute.cs
- SettingsAttributes.cs
- ReverseComparer.cs
- WindowsPen.cs
- FontNamesConverter.cs
- LoadedOrUnloadedOperation.cs
- DbException.cs
- ProxyAttribute.cs
- VariantWrapper.cs
- ConstraintCollection.cs
- Memoizer.cs
- SoapConverter.cs
- DoWorkEventArgs.cs
- SpotLight.cs
- ListViewGroup.cs
- CodeCatchClauseCollection.cs
- BaseConfigurationRecord.cs
- connectionpool.cs
- BamlLocalizer.cs
- Repeater.cs
- BuildProviderUtils.cs
- PassportAuthentication.cs
- VisualTreeHelper.cs
- HttpCookiesSection.cs
- EntityClassGenerator.cs
- WebBrowserPermission.cs
- PackWebResponse.cs
- OleDbDataAdapter.cs
- FontWeights.cs
- QilTypeChecker.cs
- DataGridViewImageCell.cs
- SafeEventLogWriteHandle.cs
- Missing.cs
- ToolStripContainer.cs
- SystemSounds.cs
- Delegate.cs
- DPTypeDescriptorContext.cs
- ExpressionVisitorHelpers.cs
- SpeakInfo.cs
- UserPreferenceChangedEventArgs.cs
- MouseBinding.cs
- DataSourceSelectArguments.cs
- Misc.cs
- QueuePropertyVariants.cs
- ReachObjectContext.cs
- OverrideMode.cs
- MouseEventArgs.cs
- PropertyPushdownHelper.cs
- LayoutInformation.cs
- HandleRef.cs
- TextWriter.cs
- NamedObject.cs
- RealizationDrawingContextWalker.cs