Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.ServiceModel.Discovery / System / ServiceModel / Discovery / Version11 / HelloOperation11AsyncResult.cs / 1305376 / HelloOperation11AsyncResult.cs
//----------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------
namespace System.ServiceModel.Discovery.Version11
{
using System.Runtime;
sealed class HelloOperation11AsyncResult : HelloOperationAsyncResult
{
public HelloOperation11AsyncResult(
IAnnouncementServiceImplementation announcementServiceImpl,
HelloMessage11 message,
AsyncCallback callback,
object state)
: base(announcementServiceImpl, message, callback, state)
{
}
public static void End(IAsyncResult result)
{
AsyncResult.End(result);
}
protected override bool ValidateContent(HelloMessage11 message)
{
return (message.Hello != null);
}
protected override DiscoveryMessageSequence GetMessageSequence(HelloMessage11 message)
{
return DiscoveryUtility.ToDiscoveryMessageSequenceOrNull(message.MessageSequence);
}
protected override EndpointDiscoveryMetadata GetEndpointDiscoveryMetadata(HelloMessage11 message)
{
return message.Hello.ToEndpointDiscoveryMetadata();
}
}
}
// 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
- BinaryNode.cs
- DefaultBinder.cs
- RenderingEventArgs.cs
- Convert.cs
- DataPagerFieldItem.cs
- UserControlParser.cs
- FileDetails.cs
- WebCategoryAttribute.cs
- COMException.cs
- SequenceDesigner.cs
- HelpEvent.cs
- RichTextBoxContextMenu.cs
- SemaphoreFullException.cs
- CodeConstructor.cs
- Section.cs
- AssemblyBuilderData.cs
- StrokeNodeOperations.cs
- ProviderCollection.cs
- RuntimeHelpers.cs
- ResourceDescriptionAttribute.cs
- ChangePasswordAutoFormat.cs
- SchemaMerger.cs
- XmlBoundElement.cs
- ExpressionBinding.cs
- RootProfilePropertySettingsCollection.cs
- WorkflowInlining.cs
- DataGridViewCheckBoxColumn.cs
- SecureUICommand.cs
- Propagator.Evaluator.cs
- basevalidator.cs
- WebBrowserUriTypeConverter.cs
- IntSecurity.cs
- documentsequencetextview.cs
- TextCharacters.cs
- ColorConverter.cs
- CommandHelpers.cs
- Effect.cs
- XmlElementAttribute.cs
- SwitchExpression.cs
- VSDExceptions.cs
- SoapAttributeOverrides.cs
- SqlXml.cs
- WindowsFormsSectionHandler.cs
- Clock.cs
- CallbackHandler.cs
- InvalidPrinterException.cs
- SqlRowUpdatingEvent.cs
- RegularExpressionValidator.cs
- CodeIndexerExpression.cs
- ListViewGroup.cs
- SymbolEqualComparer.cs
- OutOfMemoryException.cs
- Vector3dCollection.cs
- storepermissionattribute.cs
- SafeSecurityHandles.cs
- ApplicationSecurityInfo.cs
- HitTestFilterBehavior.cs
- TransformerInfoCollection.cs
- VBCodeProvider.cs
- AxHost.cs
- XmlSchemaDatatype.cs
- ConfigurationSettings.cs
- DynamicFilter.cs
- PrivilegedConfigurationManager.cs
- CodeEventReferenceExpression.cs
- NodeInfo.cs
- DataControlFieldsEditor.cs
- ObjectDataProvider.cs
- ConfigXmlAttribute.cs
- DefaultBinder.cs
- WsatTransactionFormatter.cs
- IUnknownConstantAttribute.cs
- DataSourceCache.cs
- ObjectItemConventionAssemblyLoader.cs
- MarkupCompiler.cs
- SqlSelectStatement.cs
- ServiceMemoryGates.cs
- QilReplaceVisitor.cs
- XPathDocumentNavigator.cs
- DesignerSelectionListAdapter.cs
- DesignRelationCollection.cs
- ProcessHost.cs
- OdbcConnectionPoolProviderInfo.cs
- DefaultPropertyAttribute.cs
- SchemaEntity.cs
- DbSourceCommand.cs
- EnumerationRangeValidationUtil.cs
- ProviderCollection.cs
- Pair.cs
- WebException.cs
- HttpProxyTransportBindingElement.cs
- TrustLevel.cs
- ConsoleKeyInfo.cs
- Viewport3DVisual.cs
- ExpressionNormalizer.cs
- BinaryParser.cs
- BasePattern.cs
- CursorConverter.cs
- EpmSyndicationContentSerializer.cs
- SmtpNegotiateAuthenticationModule.cs