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
- AnnotationResource.cs
- SafeHandles.cs
- ActiveXHelper.cs
- FontFamily.cs
- ListParaClient.cs
- LicFileLicenseProvider.cs
- RelatedPropertyManager.cs
- Command.cs
- URL.cs
- GPPOINT.cs
- WindowsTooltip.cs
- LinqTreeNodeEvaluator.cs
- LongSumAggregationOperator.cs
- EnumDataContract.cs
- RewritingPass.cs
- SspiHelper.cs
- XPathAxisIterator.cs
- XmlSchemaObjectCollection.cs
- ProtocolsConfigurationEntry.cs
- RegistryKey.cs
- EncodingTable.cs
- VersionPair.cs
- LayoutEngine.cs
- State.cs
- GridItemProviderWrapper.cs
- DataGridLinkButton.cs
- SecurityUtils.cs
- RNGCryptoServiceProvider.cs
- EditorPartChrome.cs
- SmiMetaData.cs
- ConnectionPool.cs
- Psha1DerivedKeyGenerator.cs
- SByte.cs
- DockAndAnchorLayout.cs
- DirectionalLight.cs
- RSACryptoServiceProvider.cs
- Pointer.cs
- IpcClientChannel.cs
- ToolStripTextBox.cs
- BoolExpressionVisitors.cs
- TrustSection.cs
- Margins.cs
- IPAddress.cs
- UserNameSecurityTokenAuthenticator.cs
- DbResourceAllocator.cs
- AssemblyHash.cs
- TabletCollection.cs
- SqlClientPermission.cs
- SerializationEventsCache.cs
- GenericAuthenticationEventArgs.cs
- ToolStripItemClickedEventArgs.cs
- SafeWaitHandle.cs
- DataRelation.cs
- DateBoldEvent.cs
- _NTAuthentication.cs
- AllMembershipCondition.cs
- PackagePartCollection.cs
- XsltContext.cs
- Int32Converter.cs
- FaultContext.cs
- ResourceAssociationSet.cs
- HttpCacheParams.cs
- BitmapEffectvisualstate.cs
- DocumentOrderQuery.cs
- SrgsElementList.cs
- ListViewTableCell.cs
- HttpProcessUtility.cs
- MobileCategoryAttribute.cs
- EntityCommandExecutionException.cs
- HandlerBase.cs
- TextEditorTables.cs
- XPathParser.cs
- WebBrowserUriTypeConverter.cs
- XmlHierarchicalDataSourceView.cs
- ParameterToken.cs
- Constants.cs
- SchemaInfo.cs
- Soap.cs
- ColumnBinding.cs
- Socket.cs
- CheckedPointers.cs
- SendActivityEventArgs.cs
- GridEntryCollection.cs
- ColorContext.cs
- FormatVersion.cs
- SqlConnectionPoolProviderInfo.cs
- ViewGenerator.cs
- ModuleBuilderData.cs
- TextElementCollection.cs
- PropertyExpression.cs
- RegexCode.cs
- CollectionBuilder.cs
- FileVersionInfo.cs
- WebBrowser.cs
- BuilderPropertyEntry.cs
- InheritanceAttribute.cs
- BamlBinaryWriter.cs
- DocumentOrderComparer.cs
- SimpleExpression.cs
- HandleCollector.cs