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
- RewritingSimplifier.cs
- VirtualDirectoryMapping.cs
- FlowLayout.cs
- XsltLibrary.cs
- InProcStateClientManager.cs
- XsltLoader.cs
- SkinBuilder.cs
- MemberExpression.cs
- XPathExpr.cs
- TabItem.cs
- XsltFunctions.cs
- XmlComplianceUtil.cs
- TypeBuilder.cs
- ResolveNameEventArgs.cs
- XmlSchemaComplexContentRestriction.cs
- DynamicRendererThreadManager.cs
- _AcceptOverlappedAsyncResult.cs
- MachineKeySection.cs
- Native.cs
- SoapWriter.cs
- IntSecurity.cs
- EventlogProvider.cs
- ChannelManager.cs
- FontStretches.cs
- StructuredTypeInfo.cs
- Queue.cs
- XmlRootAttribute.cs
- CultureTable.cs
- ChunkedMemoryStream.cs
- GenericRootAutomationPeer.cs
- CustomAttributeFormatException.cs
- TraceXPathNavigator.cs
- BulletedListEventArgs.cs
- CachedResourceDictionaryExtension.cs
- Facet.cs
- ClientConvert.cs
- XmlNodeComparer.cs
- Scene3D.cs
- NativeCompoundFileAPIs.cs
- Error.cs
- ValidationSettings.cs
- PermissionListSet.cs
- BitmapEffectGroup.cs
- AutoResetEvent.cs
- Trace.cs
- MemberAssignmentAnalysis.cs
- PersonalizationAdministration.cs
- DesignTimeValidationFeature.cs
- CompareValidator.cs
- QuadraticBezierSegment.cs
- DataServiceQueryOfT.cs
- NumericUpDown.cs
- DiffuseMaterial.cs
- ControlEvent.cs
- TransformProviderWrapper.cs
- UserControlCodeDomTreeGenerator.cs
- PixelFormat.cs
- TextRangeEditTables.cs
- Claim.cs
- DelegatingConfigHost.cs
- AncillaryOps.cs
- EtwTrace.cs
- TextEditorDragDrop.cs
- ListBoxChrome.cs
- FlowLayoutPanel.cs
- DockAndAnchorLayout.cs
- SubtreeProcessor.cs
- StylusDownEventArgs.cs
- XmlSchemaRedefine.cs
- ListenerServiceInstallComponent.cs
- TextRunTypographyProperties.cs
- RectangleF.cs
- latinshape.cs
- ObjectStateEntryDbDataRecord.cs
- XmlExtensionFunction.cs
- backend.cs
- ProcessModuleCollection.cs
- WebPartConnectionCollection.cs
- ListViewDeletedEventArgs.cs
- UnsafeNativeMethodsMilCoreApi.cs
- MenuDesigner.cs
- CharStorage.cs
- FrameSecurityDescriptor.cs
- SqlResolver.cs
- UrlMappingsSection.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- Util.cs
- PlanCompilerUtil.cs
- DecoderReplacementFallback.cs
- VisualTreeUtils.cs
- BindingOperations.cs
- httpstaticobjectscollection.cs
- XmlReflectionImporter.cs
- DataRelationCollection.cs
- URI.cs
- SamlAssertionKeyIdentifierClause.cs
- SemanticTag.cs
- DocumentXmlWriter.cs
- BaseCollection.cs
- recordstatefactory.cs