vb System.ServiceModel.Description.ServiceCredentials.SecureConversationAuthentication类(方法)实例源码

下面列出了vb System.ServiceModel.Description.ServiceCredentials.SecureConversationAuthentication 类(方法)源码代码实例,从而了解它的用法。

作者:VB.NET开发    项目:System.ServiceModel.Descriptio   
' Create a service host.
Dim httpUri As New Uri("http://localhost/Calculator")
Dim sh As New ServiceHost(GetType(Calculator), httpUri)

' Create a binding that uses a WindowsServiceCredential .
Dim b As New WSHttpBinding(SecurityMode.Message)
b.Security.Message.ClientCredentialType = MessageCredentialType.Windows

' Add an endpoint.
sh.AddServiceEndpoint(GetType(ICalculator), b, "WindowsCalculator")

' Get a reference to the WindowsServiceCredential object.
Dim ssCredential As SecureConversationServiceCredential = sh.Credentials.SecureConversationAuthentication


问题


面经


文章

微信
公众号

扫码关注公众号