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
- BitmapCodecInfoInternal.cs
- PointCollectionConverter.cs
- DirectionalLight.cs
- DoubleLinkList.cs
- _SSPISessionCache.cs
- DragDrop.cs
- _CookieModule.cs
- VirtualDirectoryMapping.cs
- PropertyMetadata.cs
- XmlDownloadManager.cs
- DbConnectionStringCommon.cs
- ChtmlTextWriter.cs
- Substitution.cs
- Merger.cs
- ProfileParameter.cs
- DataGridViewRow.cs
- ResourcePermissionBaseEntry.cs
- WebContext.cs
- BaseServiceProvider.cs
- VirtualPath.cs
- ActivityFunc.cs
- InputProcessorProfiles.cs
- SchemaImporterExtensionsSection.cs
- WeakReferenceKey.cs
- RunWorkerCompletedEventArgs.cs
- OledbConnectionStringbuilder.cs
- RectKeyFrameCollection.cs
- CreateUserWizardStep.cs
- OracleConnectionString.cs
- OptionUsage.cs
- CompiledXpathExpr.cs
- DirectoryInfo.cs
- DataGridLength.cs
- SequentialUshortCollection.cs
- PasswordTextContainer.cs
- Deflater.cs
- _RequestCacheProtocol.cs
- GacUtil.cs
- ZipFileInfo.cs
- HostingEnvironmentException.cs
- hresults.cs
- ScriptingSectionGroup.cs
- EditorPartCollection.cs
- CodeVariableReferenceExpression.cs
- ApplicationId.cs
- UrlSyndicationContent.cs
- InstanceKeyCollisionException.cs
- ActiveDesignSurfaceEvent.cs
- PageAsyncTask.cs
- EncoderNLS.cs
- ConnectionsZone.cs
- XmlDeclaration.cs
- LayoutDump.cs
- CodeFieldReferenceExpression.cs
- SqlConnectionPoolProviderInfo.cs
- safelink.cs
- SimpleRecyclingCache.cs
- ReadOnlyHierarchicalDataSourceView.cs
- WsatServiceCertificate.cs
- ZoneIdentityPermission.cs
- ContextMenuService.cs
- LinkDescriptor.cs
- SecuritySessionServerSettings.cs
- PersonalizableTypeEntry.cs
- Transactions.cs
- FixedSOMContainer.cs
- Message.cs
- CharacterString.cs
- UniqueConstraint.cs
- TextFindEngine.cs
- OutputCacheSettings.cs
- ParserHooks.cs
- ColumnMapVisitor.cs
- MsmqIntegrationChannelFactory.cs
- DropShadowEffect.cs
- HyperLinkColumn.cs
- PointAnimation.cs
- HttpPostedFile.cs
- LiteralTextContainerControlBuilder.cs
- DefaultEventAttribute.cs
- ClientSideQueueItem.cs
- SafeFileMappingHandle.cs
- MappingException.cs
- SqlTriggerContext.cs
- LongTypeConverter.cs
- BlurBitmapEffect.cs
- AmbientProperties.cs
- DesignerUtils.cs
- LinqDataSourceValidationException.cs
- XmlEventCache.cs
- QueryContinueDragEvent.cs
- LogLogRecordEnumerator.cs
- DataServiceContext.cs
- NativeCompoundFileAPIs.cs
- ColorMatrix.cs
- HttpHandlerActionCollection.cs
- GradientStop.cs
- CompositionTarget.cs
- Operators.cs
- MetabaseServerConfig.cs