%PDF- %PDF-
Direktori : C:/Windows/SystemApps/Microsoft.Windows.Cortana_cw5n1h2txyewy/dss_service/node_modules/proactive/lib/ |
Current File : C:/Windows/SystemApps/Microsoft.Windows.Cortana_cw5n1h2txyewy/dss_service/node_modules/proactive/lib/signal-handler.js |
var async=require("async-safe"),tag="proactive/signal-handler.js",telemetry=require("proactive-telemetry"),telemetryInstance=telemetry.getProactiveTelemetryInstance(),notificationsTelemetryInstance=telemetry.getNotificationsTelemetryInstance(),telemetryEvents=telemetry.Events.SignalHandler,telemetryConstants=telemetry.Events.Constants;exports.SignalHandler=function SignalHandler(n,t){function i(n,t){var i=this;i._orchestrator.refreshAnswers(n,function(n){if(n)return t(n);i._orchestrator.once("done",function(){return t()})})}function r(n,t){console.log("%s: got prefetch event. Starting prefetch.",tag,n);var r=telemetryInstance.startActivity(telemetryEvents.HandlePrefetchActivity);i.call(this,function(n){return r.stop(n),t(n)})}if(!(this instanceof SignalHandler))return new SignalHandler(n,t);this._orchestrator=t;console.log("%s: Setting up RX handlers.",tag);n.on("proactive/prefetch",r.bind(this))}