Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.ServiceModel.Discovery / System / ServiceModel / Discovery / Version11 / ResolveDuplex11AsyncResult.cs / 1305376 / ResolveDuplex11AsyncResult.cs
//---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------- namespace System.ServiceModel.Discovery.Version11 { using System.Runtime; sealed class ResolveDuplex11AsyncResult : ResolveDuplexAsyncResult{ internal ResolveDuplex11AsyncResult(ResolveMessage11 resolveMessage, IDiscoveryServiceImplementation discoveryServiceImpl, IMulticastSuppressionImplementation multicastSuppressionImpl, AsyncCallback callback, object state) : base(resolveMessage, discoveryServiceImpl, multicastSuppressionImpl, callback, state) { } public static void End(IAsyncResult result) { AsyncResult.End (result); } protected override bool ValidateContent(ResolveMessage11 resolveMessage) { if ((resolveMessage == null) || (resolveMessage.Resolve == null)) { if (TD.DiscoveryMessageWithNoContentIsEnabled()) { TD.DiscoveryMessageWithNoContent(ProtocolStrings.TracingStrings.Resolve); } return false; } return true; } protected override ResolveCriteria GetResolveCriteria(ResolveMessage11 resolveMessage) { return resolveMessage.Resolve.ToResolveCriteria(); } protected override IAsyncResult BeginSendResolveResponse( IDiscoveryResponseContract11 responseChannel, DiscoveryMessageSequence discoveryMessageSequence, EndpointDiscoveryMetadata matchingEndpoint, AsyncCallback callback, object state) { return responseChannel.BeginResolveMatchOperation( ResolveMatchesMessage11.Create( discoveryMessageSequence, matchingEndpoint), callback, state); } protected override void EndSendResolveResponse(IDiscoveryResponseContract11 responseChannel, IAsyncResult result) { responseChannel.EndResolveMatchOperation(result); } protected override IAsyncResult BeginSendProxyAnnouncement( IDiscoveryResponseContract11 responseChannel, DiscoveryMessageSequence discoveryMessageSequence, EndpointDiscoveryMetadata proxyEndpointDiscoveryMetadata, AsyncCallback callback, object state) { return responseChannel.BeginHelloOperation( HelloMessage11.Create( discoveryMessageSequence, proxyEndpointDiscoveryMetadata), callback, state); } protected override void EndSendProxyAnnouncement(IDiscoveryResponseContract11 responseChannel, IAsyncResult result) { responseChannel.EndHelloOperation(result); } } } // 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
- DataGridViewSelectedRowCollection.cs
- MemberListBinding.cs
- DataGridViewColumnEventArgs.cs
- ScriptManager.cs
- MsmqIntegrationProcessProtocolHandler.cs
- CompModSwitches.cs
- XmlSchemaExternal.cs
- ASCIIEncoding.cs
- WebUtility.cs
- GridEntry.cs
- DataGridTable.cs
- HyperLinkField.cs
- EndpointDispatcherTable.cs
- ArrayExtension.cs
- DbParameterCollection.cs
- _DomainName.cs
- LicFileLicenseProvider.cs
- AsyncPostBackTrigger.cs
- ApplicationException.cs
- MergablePropertyAttribute.cs
- SingleObjectCollection.cs
- elementinformation.cs
- FileUtil.cs
- FormsAuthenticationTicket.cs
- ColorConvertedBitmapExtension.cs
- XmlIgnoreAttribute.cs
- ContentType.cs
- ProgramNode.cs
- WebPartCancelEventArgs.cs
- ServiceReference.cs
- XPathItem.cs
- XmlWrappingWriter.cs
- DbConnectionOptions.cs
- DataViewSetting.cs
- PropertyValue.cs
- TreeViewCancelEvent.cs
- ItemContainerPattern.cs
- DataSourceCacheDurationConverter.cs
- BevelBitmapEffect.cs
- ImageSourceValueSerializer.cs
- PersonalizationProvider.cs
- UInt32.cs
- WindowsTokenRoleProvider.cs
- ThreadAttributes.cs
- InkCanvasFeedbackAdorner.cs
- TableHeaderCell.cs
- ServiceEndpointElementCollection.cs
- CharacterHit.cs
- AssociationSetMetadata.cs
- IndentTextWriter.cs
- ConnectionOrientedTransportElement.cs
- Attachment.cs
- DataBindingExpressionBuilder.cs
- DataGridViewHitTestInfo.cs
- TypedReference.cs
- StorageTypeMapping.cs
- ContainerSelectorGlyph.cs
- Axis.cs
- SmiMetaData.cs
- XmlEnumAttribute.cs
- SpecularMaterial.cs
- EmptyReadOnlyDictionaryInternal.cs
- SelectorAutomationPeer.cs
- SelectionItemProviderWrapper.cs
- WindowsUpDown.cs
- MatrixKeyFrameCollection.cs
- XhtmlMobileTextWriter.cs
- HttpSocketManager.cs
- ApplicationServiceManager.cs
- SmiEventSink_DeferedProcessing.cs
- MemberInfoSerializationHolder.cs
- Camera.cs
- Inflater.cs
- RelationshipEnd.cs
- NetworkInformationPermission.cs
- ObjectToken.cs
- TreeChangeInfo.cs
- BufferModesCollection.cs
- ResourceDefaultValueAttribute.cs
- DataBoundControl.cs
- SqlFileStream.cs
- XmlnsCache.cs
- StringCollectionEditor.cs
- RestHandler.cs
- CfgRule.cs
- ToolStripDropDownButton.cs
- DocumentPageViewAutomationPeer.cs
- InProcStateClientManager.cs
- RoutedUICommand.cs
- RIPEMD160.cs
- DependencyPropertyAttribute.cs
- DurationConverter.cs
- ExtractedStateEntry.cs
- XmlILOptimizerVisitor.cs
- TypeGeneratedEventArgs.cs
- DesigntimeLicenseContext.cs
- PrePrepareMethodAttribute.cs
- ScriptRef.cs
- AddressAlreadyInUseException.cs
- XmlDictionaryString.cs