IDispatchOperationSelector インターフェイス

定義

受信メッセージとローカル操作を関連付けてサービス実行動作をカスタマイズするコントラクトを定義します。

public interface class IDispatchOperationSelector
public interface IDispatchOperationSelector
type IDispatchOperationSelector = interface
Public Interface IDispatchOperationSelector
派生

public class QueryStringDispatcherBehavior : IDispatchOperationSelector  
{  
//Define the mapping from the Actions of the message to the operations.  
NameValueCollection actionMap; { … }  

//Implement the SelectOperation method.  
public string SelectOperation( ref Message message )  
        {  
            Uri uri = new Uri(message.Headers.Action);  
            string query = uri.Query;  

            string methodName = actionMap[message.Headers.Action.ToString()];  

            return methodName;  
        }  
}  

注釈

サービス アプリケーションでの受信メッセージのディスパッチ先操作の選択をカスタマイズするための、カスタム操作セレクターを実装および挿入します。 IDispatchOperationSelector オブジェクトを OperationSelector プロパティに割り当てて、カスタム セレクターを挿入します。

メソッド

SelectOperation(Message)

ローカル操作と受信メソッドを関連付けます。

適用対象