Rename 'Monitoring C2D' to 'Receiving C2D' (#426)

This commit is contained in:
Jun Han 2019-11-06 14:02:51 +08:00 коммит произвёл GitHub
Родитель 2c97b42dae
Коммит d04da9e1ff
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
4 изменённых файлов: 9 добавлений и 9 удалений

Просмотреть файл

@ -40,7 +40,7 @@ The [Wiki page](https://github.com/Microsoft/vscode-azure-iot-toolkit/wiki) incl
* Send D2C message to IoT Hub
* Monitor Built-in Event Endpoint
* Send C2D message to device
* Monitor C2D message from IoT Hub
* Receive C2D message from IoT Hub
* Invoke Device Direct Method
* Edit Device Twin
* Manage Azure IoT distributed tracing

Просмотреть файл

@ -4,8 +4,8 @@
"azure-iot-toolkit.command.startMonitorIoTHubMessageWithAbbreviation.title": "モニターを開始",
"azure-iot-toolkit.command.stopMonitorIoTHubMessage.title": "ビルトインエンドポイントのモニターを停止",
"azure-iot-toolkit.command.sendC2DMessage.title": "デバイスへC2Dメッセージを送信",
"azure-iot-toolkit.command.startMonitorC2DMessage.title": "C2Dメッセージのモニターを開始",
"azure-iot-toolkit.command.stopMonitorC2DMessage.title": "C2Dメッセージのモニターを停止",
"azure-iot-toolkit.command.startMonitorC2DMessage.title": "C2Dメッセージの受信を開始",
"azure-iot-toolkit.command.stopMonitorC2DMessage.title": "C2Dメッセージの受信を停止",
"azure-iot-toolkit.command.listDevice.title": "デバイス一覧を表示",
"azure-iot-toolkit.command.createDevice.title": "デバイスを作成",
"azure-iot-toolkit.command.deleteDevice.title": "デバイスを削除",

Просмотреть файл

@ -7,8 +7,8 @@
"azure-iot-toolkit.command.startMonitorIoTHubMessageWithAbbreviation.title": "Start Monitoring",
"azure-iot-toolkit.command.stopMonitorIoTHubMessage.title": "Stop Monitoring Built-in Event Endpoint",
"azure-iot-toolkit.command.sendC2DMessage.title": "Send C2D Message to Device",
"azure-iot-toolkit.command.startMonitorC2DMessage.title": "Start Monitoring C2D Message",
"azure-iot-toolkit.command.stopMonitorC2DMessage.title": "Stop Monitoring C2D Message",
"azure-iot-toolkit.command.startMonitorC2DMessage.title": "Start Receiving C2D Message",
"azure-iot-toolkit.command.stopMonitorC2DMessage.title": "Stop Receiving C2D Message",
"azure-iot-toolkit.command.listDevice.title": "List Devices",
"azure-iot-toolkit.command.createDevice.title": "Create Device",
"azure-iot-toolkit.command.deleteDevice.title": "Delete Device",

Просмотреть файл

@ -17,7 +17,7 @@ export class IotHubC2DMessageExplorer extends IoTHubMessageBaseExplorer {
private _deviceClient: Client;
constructor(outputChannel: vscode.OutputChannel) {
super(outputChannel, "$(primitive-square) Stop Monitoring C2D Message", "azure-iot-toolkit.stopMonitorC2DMessage");
super(outputChannel, "$(primitive-square) Stop Receiving C2D Message", "azure-iot-toolkit.stopMonitorC2DMessage");
}
public async sendC2DMessage(deviceItem?: DeviceItem) {
@ -36,7 +36,7 @@ export class IotHubC2DMessageExplorer extends IoTHubMessageBaseExplorer {
public async startMonitorC2DMessage(deviceItem?: DeviceItem) {
if (this._isMonitoring) {
this._outputChannel.show();
this.outputLine(Constants.IoTHubC2DMessageMonitorLabel, "There is a running job to monitor C2D message. Please stop it first.");
this.outputLine(Constants.IoTHubC2DMessageMonitorLabel, "There is a running job to receive C2D message. Please stop it first.");
return;
}
@ -55,7 +55,7 @@ export class IotHubC2DMessageExplorer extends IoTHubMessageBaseExplorer {
TelemetryClient.sendEvent(Constants.IoTHubAIStopMonitorC2DEvent);
this._outputChannel.show();
if (this._isMonitoring) {
this.outputLine(Constants.IoTHubC2DMessageMonitorLabel, "C2D monitoring stopped.");
this.outputLine(Constants.IoTHubC2DMessageMonitorLabel, "C2D receiving stopped.");
this._monitorStatusBarItem.hide();
this._deviceClient.close(() => { this.updateMonitorStatus(false); });
} else {
@ -89,7 +89,7 @@ export class IotHubC2DMessageExplorer extends IoTHubMessageBaseExplorer {
} else {
this.updateMonitorStatus(true);
let deviceId = ConnectionString.parse(deviceConnectionString).DeviceId;
this.outputLine(Constants.IoTHubC2DMessageMonitorLabel, `Start monitoring C2D message for [${deviceId}]...`);
this.outputLine(Constants.IoTHubC2DMessageMonitorLabel, `Start receiving C2D message for [${deviceId}]...`);
TelemetryClient.sendEvent(Constants.IoTHubAIStartMonitorC2DEvent);
this._deviceClient.on("message", (msg) => {
this.outputLine(Constants.IoTHubC2DMessageMonitorLabel, "Message Received: " + msg.getData());