PageSourceSearch

https://www.roadscholar.org/_content/BlazorApplicationInsights/BlazorApplicationInsights.lib.module.js

js roadscholar.org collected 2026-09-24 09:16:01 UTC 3,029 bytes, 84 lines download raw bytes

1window.blazorApplicationInsights = {
2    addTelemetryInitializer: function (telemetryItem) {
3        var telemetryInitializer = (envelope) => {
4            if (telemetryItem.ver !== null) {
5                envelope.ver = telemetryItem.ver;
6            }
7            if (telemetryItem.name !== null) {
8                envelope.name = telemetryItem.name;
9            }
10            if (telemetryItem.time !== null) {
11                envelope.time = telemetryItem.time;
12            }
13            if (telemetryItem.iKey !== null) {
14                envelope.iKey = telemetryItem.iKey;
15            }
16            if (telemetryItem.ext !== null) {
17                Object.assign(envelope.ext, telemetryItem.ext);
18            }
19            if (telemetryItem.tags !== null) {
20                Object.assign(envelope.tags, telemetryItem.tags);
21            }
22            if (telemetryItem.data !== null) {
23                Object.assign(envelope.data, telemetryItem.data);
24            }
25            if (telemetryItem.baseType !== null) {
26                envelope.baseType = telemetryItem.baseType;
27            }
28            if (telemetryItem.baseData !== null) {
29                Object.assign(envelope.baseData, telemetryItem.baseData);
30            }
31        }
32
33        appInsights.addTelemetryInitializer(telemetryInitializer);
34    },
35    trackDependencyData: function (dependencyTelemetry) {
36        if (dependencyTelemetry.startTime !== null) {
37            dependencyTelemetry.startTime = new Date(dependencyTelemetry.startTime);
38        }
39
40        appInsights.trackDependencyData(dependencyTelemetry);
41    },
42    getContext: function () {
43        if (appInsights.context !== undefined) {
44            return appInsights.context
45        }
46    },
47    cookieMgrSetCookiesEnabled: function (enabled) {
48        if (appInsights.getCookieMgr !== undefined) {
49            appInsights.getCookieMgr().setEnabled(enabled);
50        }
51    },
52    cookieMgrGetCookiesEnabled: function () {
53        if (appInsights.getCookieMgr !== undefined) {
54            return appInsights.getCookieMgr().isEnabled();
55        } else {
56            return false;
57        }
58    },
59    cookieMgrSet: function (name, value, maxAgeSec, domain, path) {
60        if (appInsights.getCookieMgr !== undefined) {
61            appInsights.getCookieMgr().set(name, value, maxAgeSec, domain, path);
62        }
63    },
64    cookieMgrGet: function (name) {
65        if (appInsights.getCookieMgr !== undefined) {
66            appInsights.getCookieMgr().get(name);
67        }
68    },
69    cookieMgrDel: function (name, path) {
70        if (appInsights.getCookieMgr !== undefined) {
71            appInsights.getCookieMgr().del(name, path);
72        }
73    },
74    cookieMgrPurge: function (name, path) {
75        if (appInsights.getCookieMgr !== undefined) {
76            appInsights.getCookieMgr().purge(name, path);
77        }
78    },
79    cookieMgrUnload: function (isAsync) {
80        if (appInsights.getCookieMgr !== undefined) {
81            appInsights.getCookieMgr().unload(isAsync);
82        }
83    },
84};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.