Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / CompletedAsyncResult.cs / 1 / CompletedAsyncResult.cs
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------
namespace System.ServiceModel
{
using System.ServiceModel.Diagnostics;
class CompletedAsyncResult : AsyncResult
{
public CompletedAsyncResult(AsyncCallback callback, object state)
: base(callback, state)
{
Complete(true);
}
public CompletedAsyncResult(Exception exception, AsyncCallback callback, object state) : base(callback, state)
{
Complete(true, exception);
}
public static void End(IAsyncResult result)
{
AsyncResult.End(result);
}
}
}
// 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
- ThicknessAnimationBase.cs
- DataObjectFieldAttribute.cs
- SmiContext.cs
- FixedTextPointer.cs
- _HelperAsyncResults.cs
- DateTimeParse.cs
- HighlightComponent.cs
- DataGridViewCellEventArgs.cs
- RuntimeConfig.cs
- GCHandleCookieTable.cs
- SoapClientMessage.cs
- ObjectDataSourceFilteringEventArgs.cs
- TextBoxBaseDesigner.cs
- QuaternionKeyFrameCollection.cs
- FieldAccessException.cs
- DynamicFilterExpression.cs
- mansign.cs
- WindowPattern.cs
- DebuggerAttributes.cs
- XmlHelper.cs
- PrePostDescendentsWalker.cs
- DesignSurface.cs
- NativeWindow.cs
- Timeline.cs
- LogicalExpr.cs
- TraceListeners.cs
- GridViewColumn.cs
- FixedSOMTableRow.cs
- IntranetCredentialPolicy.cs
- ParseElementCollection.cs
- TypedDataSourceCodeGenerator.cs
- Point4D.cs
- FusionWrap.cs
- CapabilitiesState.cs
- AppDomainProtocolHandler.cs
- WebErrorHandler.cs
- FontNamesConverter.cs
- WebPartCatalogCloseVerb.cs
- CaseKeyBox.xaml.cs
- PageContentCollection.cs
- PageVisual.cs
- ImageButton.cs
- RsaElement.cs
- LexicalChunk.cs
- OutputCacheProfileCollection.cs
- StrokeIntersection.cs
- OutArgumentConverter.cs
- XmlElementAttribute.cs
- _UriTypeConverter.cs
- SqlDataAdapter.cs
- XsdDataContractImporter.cs
- XmlWhitespace.cs
- SimpleLine.cs
- HtmlInputCheckBox.cs
- FormViewDesigner.cs
- SHA256Cng.cs
- SystemException.cs
- DesignTable.cs
- ObfuscateAssemblyAttribute.cs
- ToolBarTray.cs
- DescendentsWalker.cs
- ControlBuilder.cs
- SmtpNtlmAuthenticationModule.cs
- ContextMenuService.cs
- AsyncContentLoadedEventArgs.cs
- OperationResponse.cs
- AQNBuilder.cs
- TextBoxAutoCompleteSourceConverter.cs
- initElementDictionary.cs
- CaseInsensitiveComparer.cs
- CodeComment.cs
- Frame.cs
- UIElement3D.cs
- TemplatePropertyEntry.cs
- WebReferencesBuildProvider.cs
- WindowsUserNameCachingSecurityTokenAuthenticator.cs
- Message.cs
- DbMetaDataColumnNames.cs
- ServiceSettingsResponseInfo.cs
- SafeRightsManagementHandle.cs
- MissingMemberException.cs
- XPathBinder.cs
- CommandID.cs
- SamlNameIdentifierClaimResource.cs
- WebPartEditorApplyVerb.cs
- WorkflowPersistenceService.cs
- GridViewSelectEventArgs.cs
- DecoderReplacementFallback.cs
- WindowsListView.cs
- BitmapEffectOutputConnector.cs
- Token.cs
- ConnectionProviderAttribute.cs
- AttachInfo.cs
- DnsEndpointIdentity.cs
- RuntimeUtils.cs
- StyleXamlTreeBuilder.cs
- NameTable.cs
- TimelineGroup.cs
- Types.cs
- MetadataItem_Static.cs