Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
ctxt.getEventHubClient = () => {
if (ctxt.tokenProvider) {
return EventHubClient.createFromTokenProvider(
ctxt.connectionConfig.host,
ctxt.eventHubPath,
ctxt.tokenProvider,
{ userAgent: ctxt.userAgent }
);
} else {
return EventHubClient.createFromConnectionString(ctxt.eventHubConnectionString, ctxt.eventHubPath, {
userAgent: ctxt.userAgent
});
}
};
ctxt.getHubRuntimeInformation = async () => {