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
- SkinBuilder.cs
- UnsafeNativeMethods.cs
- PageThemeCodeDomTreeGenerator.cs
- LineInfo.cs
- ListenerElementsCollection.cs
- XmlLanguage.cs
- AnnotationResourceCollection.cs
- ContextMarshalException.cs
- EntityContainerRelationshipSet.cs
- HttpCachePolicyElement.cs
- RequestCachingSection.cs
- Slider.cs
- PerspectiveCamera.cs
- AnnotationMap.cs
- DynamicRenderer.cs
- EmptyEnumerator.cs
- HandoffBehavior.cs
- WebPart.cs
- HexParser.cs
- NavigationPropertyEmitter.cs
- SortedSetDebugView.cs
- CodeMemberField.cs
- QueryContext.cs
- BreadCrumbTextConverter.cs
- basenumberconverter.cs
- FileDialog_Vista.cs
- HtmlTableCellCollection.cs
- WebPartDisplayModeCancelEventArgs.cs
- WebPartManagerDesigner.cs
- IPEndPointCollection.cs
- PieceDirectory.cs
- VBIdentifierNameEditor.cs
- ProxyGenerator.cs
- ListBoxItemWrapperAutomationPeer.cs
- FaultContractAttribute.cs
- CompiledIdentityConstraint.cs
- EntityTypeEmitter.cs
- Int32AnimationUsingKeyFrames.cs
- DataSourceHelper.cs
- activationcontext.cs
- Bits.cs
- GeneralTransform3DGroup.cs
- SharedConnectionListener.cs
- ConnectivityStatus.cs
- FactoryRecord.cs
- NavigationWindowAutomationPeer.cs
- SqlReferenceCollection.cs
- DataBoundControl.cs
- HttpListenerPrefixCollection.cs
- CornerRadius.cs
- Zone.cs
- DragEvent.cs
- Point4DValueSerializer.cs
- TaskSchedulerException.cs
- KnownTypeHelper.cs
- SafeCryptContextHandle.cs
- AssemblyAttributes.cs
- SerTrace.cs
- ValueConversionAttribute.cs
- XmlWriterSettings.cs
- InkCanvasAutomationPeer.cs
- PropertyManager.cs
- UrlAuthFailedErrorFormatter.cs
- ScriptingAuthenticationServiceSection.cs
- Metadata.cs
- CssTextWriter.cs
- DeviceFilterEditorDialog.cs
- BaseDataBoundControl.cs
- SqlExpressionNullability.cs
- AssertHelper.cs
- LoginView.cs
- ValidationErrorCollection.cs
- ScalarConstant.cs
- CalendarTable.cs
- WizardPanelChangingEventArgs.cs
- RightsManagementEncryptedStream.cs
- DCSafeHandle.cs
- SspiWrapper.cs
- HtmlFormWrapper.cs
- RuntimeHandles.cs
- XmlSchemaInfo.cs
- ResourceExpressionEditor.cs
- PageAsyncTaskManager.cs
- IsolatedStorageFileStream.cs
- TextEffectResolver.cs
- GenericPrincipal.cs
- NativeWindow.cs
- CopyAction.cs
- GroupLabel.cs
- ApplicationHost.cs
- FilterElement.cs
- NameValuePermission.cs
- TypeConverterHelper.cs
- ComponentCollection.cs
- KeyGestureValueSerializer.cs
- ImageIndexEditor.cs
- Tool.cs
- StructuredProperty.cs
- CollectionChangeEventArgs.cs
- HtmlControl.cs