语言

ServiceConfiguration 类

定义

表示服务的可配置属性。

public ref class ServiceConfiguration
public class ServiceConfiguration
type ServiceConfiguration = class
Public Class ServiceConfiguration
继承
ServiceConfiguration

属性

名称 说明
Authentication

获取服务身份验证行为。

Authorization

获取服务的授权行为。

BaseAddresses

获取服务使用的基址。

CloseTimeout

获取或设置允许服务关闭的时间间隔。

Credentials

获取服务凭据。

Description

获取服务说明。

IdentityConfiguration

获取或设置服务的标识配置。

OpenTimeout

获取或设置允许服务打开的时间间隔。

UseIdentityConfiguration

获取或设置一个值,该值指示服务是否使用标识配置。

方法

名称 说明
AddServiceEndpoint(ServiceEndpoint)

将指定的服务终结点添加到配置服务。

AddServiceEndpoint(Type, Binding, String, Uri)

使用指定的协定、绑定、终结点地址和 URI 将服务终结点添加到配置服务,其中包含它侦听的地址。

AddServiceEndpoint(Type, Binding, String)

使用指定的协定、绑定和终结点地址将服务终结点添加到配置服务。

AddServiceEndpoint(Type, Binding, Uri, Uri)

使用包含终结点和侦听地址的指定协定、绑定和 URI 将服务终结点添加到配置服务。

AddServiceEndpoint(Type, Binding, Uri)

使用包含终结点地址的指定协定、绑定和 URI 将服务终结点添加到配置服务。

EnableProtocol(Binding)

使用服务终结点启用绑定协议。

Equals(Object)

确定指定的对象是否等于当前对象。

(继承自 Object)
GetHashCode()

用作默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type。

(继承自 Object)
LoadFromConfiguration()

从当前服务配置加载配置。

LoadFromConfiguration(Configuration)

从当前服务配置加载配置。

MemberwiseClone()

创建当前 Object的浅表副本。

(继承自 Object)
SetEndpointAddress(ServiceEndpoint, String)

将指定终结点的终结点地址设置为指定地址。

ToString()

返回一个表示当前对象的字符串。

(继承自 Object)

适用于