ServiceConfiguration 类
定义
表示服务的可配置属性。Represents a configurable property for the service.
public ref class ServiceConfiguration
public class ServiceConfiguration
type ServiceConfiguration = class
Public Class ServiceConfiguration
- 继承
-
ServiceConfiguration
属性
| Authentication |
获取服务身份验证行为。Gets the service authentication behavior. |
| Authorization |
获取服务的授权行为。Gets the authorization behavior for the service. |
| BaseAddresses |
获取服务所使用的基址。Gets the base addresses used by the service. |
| CloseTimeout |
获取或设置允许服务关闭的时间间隔。Gets or sets the interval of time allowed for the service to close. |
| Credentials |
获取服务凭据。Gets the service credential. |
| Description |
获取服务说明。Gets the service description. |
| IdentityConfiguration |
获取或设置服务的标识配置。Gets or sets the identity configuration for the service. |
| OpenTimeout |
获取或设置允许服务打开的时间间隔。Gets or sets the interval of time allowed for the service to open. |
| UseIdentityConfiguration |
获取或设置一个值,该值指示该服务是否使用标识配置。Gets or sets a value that indicates whether the service uses identity configuration. |
方法
| AddServiceEndpoint(ServiceEndpoint) |
将指定的服务终结点添加到配置服务中。Adds the specified service endpoint to the configuration service. |
| AddServiceEndpoint(Type, Binding, String) |
使用指定的协定、绑定和终结点地址将服务终结点添加到配置服务中。Adds a service endpoint to the configuration service with a specified contract, binding, and endpoint address. |
| AddServiceEndpoint(Type, Binding, String, Uri) |
使用指定的协定、绑定和终结点地址以及包含服务所侦听地址的 URI,将服务终结点添加到配置服务中。Adds a service endpoint to the configuration service with a specified contract, binding, endpoint address and URI that contains the address at which it listens. |
| AddServiceEndpoint(Type, Binding, Uri) |
使用指定的约定、绑定和包含终结点地址的 URI 将服务终结点添加到配置服务中。Adds a service endpoint to the configuration service with a specified contract, binding, and URI that contains the endpoint address. |
| AddServiceEndpoint(Type, Binding, Uri, Uri) |
使用指定的协定、绑定和包含终结点与所侦听地址的 URI,将服务终结点添加到配置服务。Adds a service endpoint to the configuration service with the specified contract, binding, and URIs that contain the endpoint and listening addresses. |
| EnableProtocol(Binding) |
启用服务终结点的绑定协议。Enables a binding protocol with the service endpoint. |
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| LoadFromConfiguration() |
从当前的服务配置加载配置。Loads a configuration from the current service configuration. |
| LoadFromConfiguration(Configuration) |
从当前的服务配置加载此配置。Loads the configuration from the current service configuration. |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| SetEndpointAddress(ServiceEndpoint, String) |
将指定终结点的终结点地址设置为指定的地址。Sets the endpoint address of the specified endpoint to the specified address. |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |