ChannelPoolSettings 類別

定義

指定通道的配額,這些通道屬於某個服務端點使用的通道集區。Specifies quotas for channels that belong to a pool of channels used by a service endpoint.

public ref class ChannelPoolSettings
public class ChannelPoolSettings
type ChannelPoolSettings = class
Public Class ChannelPoolSettings
繼承
ChannelPoolSettings

備註

配額是一種用來避免資源過度耗費的原則機制。Quotas are used as a policy mechanism to prevent the consumption of excessive resources. 這類配額會防止惡意或是無意間發生的阻斷服務 (DOS) 攻擊。They prevent Denial of Service (DOS) attacks that are either malicious or unintentional. 當設定自訂通道配額的時候,請使用這個類別。Use this class when setting channel quotas on a custom channel.

ChannelPoolSettings 指定三種配額:ChannelPoolSettings specifies three quotas:

  • IdleTimeout,指定集區內通道在關閉之前可以閒置的最長時間間隔。IdleTimeout to specify the maximum interval of time for which the channels in the pool can be idle before being closed.

  • LeaseTimeout,指定已傳回到集區之通道多久之後將關閉的間隔時間。LeaseTimeout to specify the interval of time after which a channel, when returned to the pool, is closed.

  • MaxOutboundChannelsPerEndpoint,指定可以儲存於每個遠端端點之集區內的最大通道數量。MaxOutboundChannelsPerEndpoint to specify the maximum number of channels that can be stored in the pool for each remote endpoint.

建構函式

ChannelPoolSettings()

初始化 ChannelPoolSettings 類別的新執行個體。Initializes a new instance of the ChannelPoolSettings class.

屬性

IdleTimeout

取得或設定集區內通道在關閉之前可以閒置的最長時間間隔。Get or sets the maximum interval of time for which the channels in the pool can be idle before being closed.

LeaseTimeout

取得或設定通道在經過之後就會關閉的存留期 (Lifetime)。Gets or sets the lifetime of a channel, after which it is closed.

MaxOutboundChannelsPerEndpoint

取得或設定服務可初始化連線到遠端端點之通道的最大數目。Gets or sets the maximum number of channels connecting to remote endpoints that can be initiated by the service.

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

作為預設雜湊函數。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於