Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / TypedAsyncResult.cs / 1 / TypedAsyncResult.cs
//---------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------------------- namespace System.ServiceModel { abstract class TypedAsyncResult: AsyncResult { T data; public TypedAsyncResult(AsyncCallback callback, object state) : base(callback, state) { } public T Data { get { return data; } } protected void Complete(T data, bool completedSynchronously) { this.data = data; Complete(completedSynchronously); } public static T End(IAsyncResult result) { TypedAsyncResult completedResult = AsyncResult.End >(result); return completedResult.Data; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Converter.cs
- TransformGroup.cs
- Hash.cs
- PhonemeEventArgs.cs
- WindowsListViewScroll.cs
- ModifiableIteratorCollection.cs
- oledbmetadatacollectionnames.cs
- Debugger.cs
- DrawTreeNodeEventArgs.cs
- EventLogPermissionEntryCollection.cs
- MenuAutomationPeer.cs
- KeyFrames.cs
- LookupNode.cs
- VersionPair.cs
- HttpClientCertificate.cs
- DataGridTableCollection.cs
- _NestedMultipleAsyncResult.cs
- AdapterSwitches.cs
- ActiveXSite.cs
- PageThemeParser.cs
- UrlPropertyAttribute.cs
- ResumeStoryboard.cs
- SystemUnicastIPAddressInformation.cs
- TextPointer.cs
- NameValueFileSectionHandler.cs
- KeyEventArgs.cs
- PanelDesigner.cs
- FigureHelper.cs
- DataGridColumnCollectionEditor.cs
- CodeDefaultValueExpression.cs
- Point4D.cs
- Codec.cs
- ProcessHostConfigUtils.cs
- SqlGatherConsumedAliases.cs
- TransformerInfo.cs
- XmlSchemaSimpleTypeUnion.cs
- AddInToken.cs
- ClientEventManager.cs
- StylusPointProperty.cs
- WindowsFormsHost.cs
- GeneralTransform2DTo3D.cs
- PointHitTestParameters.cs
- Int64AnimationUsingKeyFrames.cs
- GeometryModel3D.cs
- MenuScrollingVisibilityConverter.cs
- PageEventArgs.cs
- MethodCallTranslator.cs
- CryptoStream.cs
- ExpandableObjectConverter.cs
- QueryStringParameter.cs
- PopOutPanel.cs
- ShaderEffect.cs
- MTConfigUtil.cs
- QilIterator.cs
- KeyInterop.cs
- FindCriteriaApril2005.cs
- FormsIdentity.cs
- PositiveTimeSpanValidator.cs
- LicenseManager.cs
- InfoCardServiceInstallComponent.cs
- PowerModeChangedEventArgs.cs
- StaticFileHandler.cs
- DataFormat.cs
- PixelFormats.cs
- ThrowHelper.cs
- RemotingAttributes.cs
- GeneralTransform2DTo3DTo2D.cs
- UnhandledExceptionEventArgs.cs
- DataControlLinkButton.cs
- TcpChannelListener.cs
- AlphaSortedEnumConverter.cs
- IArgumentProvider.cs
- NameTable.cs
- XmlILConstructAnalyzer.cs
- Logging.cs
- RowTypeElement.cs
- HashMembershipCondition.cs
- RemoteWebConfigurationHostStream.cs
- Matrix.cs
- Resources.Designer.cs
- ArglessEventHandlerProxy.cs
- BaseDataListDesigner.cs
- DesignerListAdapter.cs
- StructuredType.cs
- FolderBrowserDialog.cs
- PersonalizationAdministration.cs
- ellipse.cs
- documentsequencetextpointer.cs
- SoapReflector.cs
- ResourceManagerWrapper.cs
- XXXOnTypeBuilderInstantiation.cs
- Point3DKeyFrameCollection.cs
- SystemWebExtensionsSectionGroup.cs
- ApplyTemplatesAction.cs
- AttachmentCollection.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- CommonRemoteMemoryBlock.cs
- Point3DAnimation.cs
- _SafeNetHandles.cs
- DataControlCommands.cs