Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.ServiceModel.Discovery / System / ServiceModel / Discovery / Version11 / ProbeDuplex11AsyncResult.cs / 1305376 / ProbeDuplex11AsyncResult.cs
//---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------- namespace System.ServiceModel.Discovery.Version11 { using System.Runtime; sealed class ProbeDuplex11AsyncResult : ProbeDuplexAsyncResult{ internal ProbeDuplex11AsyncResult(ProbeMessage11 probeMessage, IDiscoveryServiceImplementation discoveryServiceImpl, IMulticastSuppressionImplementation multicastSuppressionImpl, AsyncCallback callback, object state) : base(probeMessage, discoveryServiceImpl, multicastSuppressionImpl, callback, state) { } public static void End(IAsyncResult result) { AsyncResult.End (result); } protected override bool ValidateContent(ProbeMessage11 probeMessage) { if ((probeMessage == null) || (probeMessage.Probe == null)) { if (TD.DiscoveryMessageWithNoContentIsEnabled()) { TD.DiscoveryMessageWithNoContent(ProtocolStrings.TracingStrings.Probe); } return false; } return true; } protected override FindCriteria GetFindCriteria(ProbeMessage11 probeMessage) { return probeMessage.Probe.ToFindCriteria(); } protected override IAsyncResult BeginSendFindResponse( IDiscoveryResponseContract11 responseChannel, DiscoveryMessageSequence discoveryMessageSequence, EndpointDiscoveryMetadata matchingEndpoint, AsyncCallback callback, object state) { return responseChannel.BeginProbeMatchOperation( ProbeMatchesMessage11.Create( discoveryMessageSequence, matchingEndpoint), callback, state); } protected override void EndSendFindResponse(IDiscoveryResponseContract11 responseChannel, IAsyncResult result) { responseChannel.EndProbeMatchOperation(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
- XamlUtilities.cs
- TypeCodeDomSerializer.cs
- DragEventArgs.cs
- RoutedEventConverter.cs
- ISAPIApplicationHost.cs
- DateTimePicker.cs
- Model3D.cs
- NavigationProperty.cs
- SoapWriter.cs
- ProfileGroupSettingsCollection.cs
- MatrixCamera.cs
- TypefaceMap.cs
- HebrewNumber.cs
- ResourceDescriptionAttribute.cs
- JsonDeserializer.cs
- PopOutPanel.cs
- IndexOutOfRangeException.cs
- QilReference.cs
- RealProxy.cs
- ElementsClipboardData.cs
- DataGridViewTopRowAccessibleObject.cs
- ZipIOFileItemStream.cs
- ListBindableAttribute.cs
- RelationshipEndMember.cs
- Substitution.cs
- ThicknessAnimation.cs
- NamespaceQuery.cs
- StringDictionary.cs
- TrustSection.cs
- XhtmlBasicTextViewAdapter.cs
- EncoderNLS.cs
- PointCollectionValueSerializer.cs
- InvalidDataException.cs
- ByteRangeDownloader.cs
- ContextMenuService.cs
- SerializationInfo.cs
- HttpListenerException.cs
- ToolStripGripRenderEventArgs.cs
- VerticalAlignConverter.cs
- OdbcErrorCollection.cs
- DurableServiceAttribute.cs
- TextBoxAutomationPeer.cs
- ObjectQueryProvider.cs
- AssemblyCache.cs
- OleTxTransactionInfo.cs
- MarkupWriter.cs
- SetterBaseCollection.cs
- FramingFormat.cs
- PageEventArgs.cs
- ProfileInfo.cs
- GeometryValueSerializer.cs
- PolicyStatement.cs
- NumberFormatter.cs
- LineSegment.cs
- Visitors.cs
- LinqDataSourceContextEventArgs.cs
- HelpHtmlBuilder.cs
- PeerCredentialElement.cs
- XmlParserContext.cs
- BaseConfigurationRecord.cs
- Transform3DGroup.cs
- _SslSessionsCache.cs
- XmlStringTable.cs
- ResourcesGenerator.cs
- HelpInfo.cs
- FileDialog_Vista_Interop.cs
- TextServicesCompartment.cs
- CookielessData.cs
- WebPartMovingEventArgs.cs
- TextElementCollection.cs
- FlowDocumentReader.cs
- SchemaMerger.cs
- WebPartConnectionsCancelEventArgs.cs
- _ConnectOverlappedAsyncResult.cs
- XmlDataSourceNodeDescriptor.cs
- BaseServiceProvider.cs
- SqlProfileProvider.cs
- ToolStripPanelRenderEventArgs.cs
- VisualCollection.cs
- SemanticResolver.cs
- AsyncOperation.cs
- ContainerControl.cs
- DropSource.cs
- DataGridViewDataErrorEventArgs.cs
- ReadWriteObjectLock.cs
- DesignerOptionService.cs
- Adorner.cs
- IItemProperties.cs
- CodeMethodReturnStatement.cs
- ListChangedEventArgs.cs
- PropertyGroupDescription.cs
- SByteConverter.cs
- SmiContextFactory.cs
- AsyncOperationContext.cs
- XmlCharCheckingReader.cs
- FormsAuthenticationConfiguration.cs
- MessagePropertyAttribute.cs
- PagesSection.cs
- OdbcCommandBuilder.cs
- HtmlElement.cs