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
- HandlerMappingMemo.cs
- EntityDataSourceContextDisposingEventArgs.cs
- dataprotectionpermissionattribute.cs
- Misc.cs
- ObjectAssociationEndMapping.cs
- SByte.cs
- CallbackException.cs
- EnvelopedPkcs7.cs
- CodeCatchClause.cs
- BaseCAMarshaler.cs
- SQLInt32Storage.cs
- TypeCollectionPropertyEditor.cs
- ProviderIncompatibleException.cs
- ObjectCache.cs
- TextElementAutomationPeer.cs
- CodeValidator.cs
- AdapterDictionary.cs
- SQLGuid.cs
- XmlLangPropertyAttribute.cs
- MergeFilterQuery.cs
- MessageQueuePermissionEntry.cs
- TextParaLineResult.cs
- UnsafeNativeMethodsPenimc.cs
- Monitor.cs
- VectorAnimation.cs
- SemaphoreSecurity.cs
- ActivityDelegate.cs
- DataGridViewSortCompareEventArgs.cs
- RegexFCD.cs
- Border.cs
- DependencyObject.cs
- LineMetrics.cs
- CodeCatchClause.cs
- DateTimeParse.cs
- LinkLabel.cs
- UserPreferenceChangedEventArgs.cs
- XmlConvert.cs
- XPathAncestorIterator.cs
- XmlSchemaSimpleTypeUnion.cs
- ArraySubsetEnumerator.cs
- DataListItemCollection.cs
- ScriptDescriptor.cs
- PrinterSettings.cs
- RemotingAttributes.cs
- dsa.cs
- ExecutionContext.cs
- BCLDebug.cs
- VectorAnimationUsingKeyFrames.cs
- MetadataPropertyAttribute.cs
- SqlHelper.cs
- IdentitySection.cs
- QueryOperationResponseOfT.cs
- StylusButtonEventArgs.cs
- ObjectPersistData.cs
- RemotingConfiguration.cs
- Size.cs
- ProfileServiceManager.cs
- PrtCap_Base.cs
- MsmqIntegrationChannelFactory.cs
- AssemblySettingAttributes.cs
- XmlSchemaComplexContentRestriction.cs
- PrimitiveRenderer.cs
- DataRecordInfo.cs
- StrictModeSecurityHeaderElementInferenceEngine.cs
- CodeNamespace.cs
- SynchronizationValidator.cs
- PartitionResolver.cs
- ErrorRuntimeConfig.cs
- NameTable.cs
- WindowsSolidBrush.cs
- EventSourceCreationData.cs
- RemotingSurrogateSelector.cs
- shaperfactoryquerycacheentry.cs
- CodeSnippetStatement.cs
- WindowsImpersonationContext.cs
- DecimalAnimationUsingKeyFrames.cs
- CurrentChangingEventManager.cs
- TempEnvironment.cs
- TreePrinter.cs
- DataControlImageButton.cs
- WindowsTokenRoleProvider.cs
- ConfigurationStrings.cs
- DebugView.cs
- SqlFlattener.cs
- ChtmlSelectionListAdapter.cs
- MembershipSection.cs
- RoleService.cs
- TableLayoutColumnStyleCollection.cs
- LabelLiteral.cs
- ResourceContainer.cs
- EncodingDataItem.cs
- ListDataHelper.cs
- RequestCachingSection.cs
- ThousandthOfEmRealPoints.cs
- CaseStatement.cs
- ColorConverter.cs
- FixedSOMTextRun.cs
- FixedPageAutomationPeer.cs
- OverflowException.cs
- OdbcReferenceCollection.cs