企業は、Azure Service Busを使用して、パブリッシュサブスクライブ(Pub / Sub)メッセージングコンポーネントを実装しています。最初のサブスクリプションアプリケーションを開発しています。 Azureポータルで、各トピックのサブスクリプションにメッセージが送信されていることがわかります。正しい詳細を指定してサブスクリプションクライアントオブジェクトを作成および初期化しますが、サブスクリプションアプリケーションはまだメッセージを消費していません。 サブスクリプションクライアントのソースコードを完成させる必要がある あなたは何をするべきか?
正解:C
Using topic client, call RegisterMessageHandler which is used to receive messages continuously from the entity. It registers a message handler and begins a new thread to receive messages. This handler is waited on every time a new message is received by the receiver. subscriptionClient.RegisterMessageHandler(ReceiveMessagesAsync, messageHandlerOptions); Reference: https://www.c-sharpcorner.com/article/azure-service-bus-topic-and-subscription-pub-sub/