ReceiveReply クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
要求/応答メッセージ交換パターンの一部としてメッセージを受信するアクティビティ。
public ref class ReceiveReply sealed : System::Activities::Activity
[System.Windows.Markup.ContentProperty("Content")]
public sealed class ReceiveReply : System.Activities.Activity
[<System.Windows.Markup.ContentProperty("Content")>]
type ReceiveReply = class
inherit Activity
Public NotInheritable Class ReceiveReply
Inherits Activity
- 継承
- 属性
例
次の例は、 ReceiveReply アクティビティの使用方法を示しています。 Send アクティビティが作成され、Sequenceに追加されます。 その後、 ReceiveReply アクティビティが Sequence に追加され、 Send アクティビティから応答が受信されます。
static void CreateClientWorkflow()
{
Variable<string> message = new Variable<string>("message", "Hello!");
Variable<string> result = new Variable<string> { Name = "result" };
Endpoint endpoint = new Endpoint
{
AddressUri = new Uri(Microsoft.Samples.WorkflowServicesSamples.Common.Constants.ServiceBaseAddress), Binding = new BasicHttpBinding(),
};
Send requestEcho = new Send
{
ServiceContractName = XName.Get("Echo", "http://tempuri.org/"),
Endpoint = endpoint,
OperationName = "Echo",
//parameters for send
Content = new SendParametersContent
{
Parameters =
{
{ "message", new InArgument<string>(message) }
}
}
};
workflow = new CorrelationScope
{
Body = new Sequence
{
Variables = { message, result },
Activities =
{
new WriteLine {
Text = new InArgument<string>("Client is ready!")
},
requestEcho,
new WriteLine {
Text = new InArgument<string>("Message sent: Hello!")
},
new ReceiveReply
{
Request = requestEcho,
//parameters for the reply
Content = new ReceiveParametersContent
{
Parameters =
{
{ "echo", new OutArgument<string>(result) }
}
}
},
new WriteLine {
Text = new InArgument<string>(env => "Message received: "+result.Get(env))
}
}
}
};
}
コンストラクター
| 名前 | 説明 |
|---|---|
| ReceiveReply() |
ReceiveReply クラスの新しいインスタンスを初期化します。 |
プロパティ
| 名前 | 説明 |
|---|---|
| Action |
メッセージのアクション ヘッダーの値を取得または設定します。 |
| CacheId |
ワークフロー定義のスコープ内で一意であるキャッシュの識別子を取得します。 (継承元 Activity) |
| Constraints |
Constraintの検証を提供するように構成できるActivity アクティビティのコレクションを取得します。 (継承元 Activity) |
| Content |
ReceiveReply アクティビティによって受信されたコンテンツを取得または設定します。 |
| CorrelationInitializers |
関連付け初期化子のコレクションを取得します。 |
| DisplayName |
デバッグ、検証、例外処理、追跡に使用されるオプションのフレンドリ名を取得または設定します。 (継承元 Activity) |
| Id |
ワークフロー定義のスコープ内で一意の識別子を取得します。 (継承元 Activity) |
| Implementation |
実行ロジックを含む Activity を返すデリゲートを取得または設定します。 (継承元 Activity) |
| ImplementationVersion |
使用する実装のバージョンを取得または設定します。 (継承元 Activity) |
| Request |
このSend アクティビティとペアになったReceiveReply アクティビティへの参照を取得または設定します。 |
メソッド
| 名前 | 説明 |
|---|---|
| CacheMetadata(ActivityMetadata) |
アクティビティの引数、変数、子アクティビティ、およびアクティビティ デリゲートの説明を作成して検証します。 (継承元 Activity) |
| Equals(Object) |
指定したオブジェクトが現在のオブジェクトと等しいかどうかを判断します。 (継承元 Object) |
| GetHashCode() |
既定のハッシュ関数として機能します。 (継承元 Object) |
| GetType() |
現在のインスタンスの Type を取得します。 (継承元 Object) |
| MemberwiseClone() |
現在の Objectの簡易コピーを作成します。 (継承元 Object) |
| OnCreateDynamicUpdateMap(UpdateMapMetadata, Activity) |
動的更新マップを作成するときにイベントを発生させます。 (継承元 Activity) |
| ShouldSerializeDisplayName() |
DisplayName プロパティをシリアル化する必要があるかどうかを示します。 (継承元 Activity) |
| ToString() |
StringのIdとDisplayNameを含むActivityを返します。 (継承元 Activity) |