ServiceConfiguration ServiceConfiguration ServiceConfiguration ServiceConfiguration Class

定义

表示服务的可配置属性。Represents a configurable property for the service.

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

属性

Authentication Authentication Authentication Authentication

获取服务身份验证行为。Gets the service authentication behavior.

Authorization Authorization Authorization Authorization

获取服务的授权行为。Gets the authorization behavior for the service.

BaseAddresses BaseAddresses BaseAddresses BaseAddresses

获取服务所使用的基址。Gets the base addresses used by the service.

CloseTimeout CloseTimeout CloseTimeout CloseTimeout

获取或设置允许服务关闭的时间间隔。Gets or sets the interval of time allowed for the service to close.

Credentials Credentials Credentials Credentials

获取服务凭据。Gets the service credential.

Description Description Description Description

获取服务说明。Gets the service description.

IdentityConfiguration IdentityConfiguration IdentityConfiguration IdentityConfiguration

获取或设置服务的标识配置。Gets or sets the identity configuration for the service.

OpenTimeout OpenTimeout OpenTimeout OpenTimeout

获取或设置允许服务打开的时间间隔。Gets or sets the interval of time allowed for the service to open.

UseIdentityConfiguration UseIdentityConfiguration UseIdentityConfiguration UseIdentityConfiguration

获取或设置一个值,该值指示该服务是否使用标识配置。Gets or sets a value that indicates whether the service uses identity configuration.

方法

AddServiceEndpoint(ServiceEndpoint) AddServiceEndpoint(ServiceEndpoint) AddServiceEndpoint(ServiceEndpoint) AddServiceEndpoint(ServiceEndpoint)

将指定的服务终结点添加到配置服务中。Adds the specified service endpoint to the configuration service.

AddServiceEndpoint(Type, Binding, String) AddServiceEndpoint(Type, Binding, String) AddServiceEndpoint(Type, Binding, String) 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) AddServiceEndpoint(Type, Binding, String, Uri) AddServiceEndpoint(Type, Binding, String, Uri) 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) AddServiceEndpoint(Type, Binding, Uri) AddServiceEndpoint(Type, Binding, Uri) 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) AddServiceEndpoint(Type, Binding, Uri, Uri) AddServiceEndpoint(Type, Binding, Uri, Uri) 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) EnableProtocol(Binding) EnableProtocol(Binding) EnableProtocol(Binding)

启用服务终结点的绑定协议。Enables a binding protocol with the service endpoint.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
LoadFromConfiguration() LoadFromConfiguration() LoadFromConfiguration() LoadFromConfiguration()

从当前的服务配置加载配置。Loads a configuration from the current service configuration.

LoadFromConfiguration(Configuration) LoadFromConfiguration(Configuration) LoadFromConfiguration(Configuration) LoadFromConfiguration(Configuration)

从当前的服务配置加载此配置。Loads the configuration from the current service configuration.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
SetEndpointAddress(ServiceEndpoint, String) SetEndpointAddress(ServiceEndpoint, String) SetEndpointAddress(ServiceEndpoint, String) SetEndpointAddress(ServiceEndpoint, String)

将指定终结点的终结点地址设置为指定的地址。Sets the endpoint address of the specified endpoint to the specified address.

ToString() ToString() ToString() ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)

适用于