AddressFilterMode AddressFilterMode AddressFilterMode AddressFilterMode Enum

定義

ディスパッチャーが受信メッセージを適切なエンドポイントにルーティングするために使用する照合セマンティクスの種類を指定します。Specifies the type of match semantics used by the dispatcher to route incoming messages to the correct endpoint.

public enum class AddressFilterMode
public enum AddressFilterMode
type AddressFilterMode = 
Public Enum AddressFilterMode
継承
AddressFilterModeAddressFilterModeAddressFilterModeAddressFilterMode

フィールド

Any Any Any Any 2

受信メッセージのすべてのアドレスと一致するフィルターを示します。Indicates a filter that matches on any address of an incoming message.

Exact Exact Exact Exact 0

受信メッセージのアドレスと完全に一致するフィルターを示します。Indicates a filter that does an exact match on the address of an incoming message.

Prefix Prefix Prefix Prefix 1

受信メッセージのアドレスに対して最長プレフィックス一致を適用するフィルターを示します。Indicates a filter does the longest prefix matches on the address of an incoming message.

[ServiceBehavior(AddressFilterMode = AddressFilterMode.Prefix)]
public class CalculatorService : ICalculator
{
    public double Add(double n1, double n2)
    {
        return n1 + n2;
    }

    public double Subtract(double n1, double n2)
    {
        return n1 - n2;
    }

    public double Multiply(double n1, double n2)
    {
        return n1 * n2;
    }

    public double Divide(double n1, double n2)
    {
        return n1 / n2;
    }
}

<ServiceBehavior(AddressFilterMode := AddressFilterMode.Prefix)> _
Public Class CalculatorService
	Implements ICalculator
	Public Function Add(ByVal n1 As Double, ByVal n2 As Double) As Double Implements ICalculator.Add
		Return n1 + n2
	End Function

	Public Function Subtract(ByVal n1 As Double, ByVal n2 As Double) As Double Implements ICalculator.Subtract
		Return n1 - n2
	End Function

	Public Function Multiply(ByVal n1 As Double, ByVal n2 As Double) As Double Implements ICalculator.Multiply
		Return n1 * n2
	End Function

	Public Function Divide(ByVal n1 As Double, ByVal n2 As Double) As Double Implements ICalculator.Divide
		Return n1 / n2
	End Function
End Class

注釈

AddressFilterMode 列挙体の値は、AddressFilterMode プロパティに設定されます。The value of the AddressFilterMode enumeration is set on the AddressFilterMode property.

プレフィックスで指定された最長プレフィックス一致条件では、宛先アドレスをフィルターでの先頭アドレス ビットの最大数で一致する必要があります。The longest prefix match criterion specified by Prefix requires that the destination address be matched by the largest number of leading address bits in the filter. 既定値は、完全一致です。The default value is Exact.

適用対象