Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | 5x 5x 5x 5x 5x 5x 5x 8x 8x 24x 46x 5x | "use strict";
/*! Copyright (c) 2023 Siemens AG. Licensed under the MIT License. */
Object.defineProperty(exports, "__esModule", { value: true });
exports.TnLifecycleService = exports.AgentLifecycleState = void 0;
const tn_base_service_1 = require("./tn-base-service");
var AgentLifecycleState;
(function (AgentLifecycleState) {
AgentLifecycleState[AgentLifecycleState["Unspecified"] = 0] = "Unspecified";
AgentLifecycleState[AgentLifecycleState["Join"] = 1] = "Join";
AgentLifecycleState[AgentLifecycleState["Leave"] = 2] = "Leave";
})(AgentLifecycleState = exports.AgentLifecycleState || (exports.AgentLifecycleState = {}));
class TnLifecycleService extends tn_base_service_1.TnBaseService {
constructor(getTnController, getTnConnectorOptions, isCoatyAgentOnline, debug) {
super(getTnController, getTnConnectorOptions, isCoatyAgentOnline, debug, "TnLifecycleService");
}
get handlers() {
return {
trackAgents: (call) => this._trackAgents(call),
};
}
_trackAgents(call) {
this.handleServerStreamingCall(call, "trackAgents", evt => call.write(evt));
}
}
exports.TnLifecycleService = TnLifecycleService;
|