More Cleaning

This commit is contained in:
Luis Fernando Molina committed 2018-04-15 10:00:10 +02:00
1 parent 95c8b2b527
commit ffda7e08f5
3 files changed
-42

No files matched your search

Binary file not shown.
-41
View File
@@ -1,41 +0,0 @@
exports.newShutdownEvent = function newShutdownEvent(BOT) {
let bot = BOT;
const ROOT_DIR = '../';
const MODULE_NAME = "Azure Web Job Shutdown";
const DEBUG_MODULE = require('./Debug Log');
const logger = DEBUG_MODULE.newDebugLog();
logger.fileName = MODULE_NAME;
logger.bot = bot;
let shutdownEvent = {
isShuttingDown: isShuttingDown
};
return shutdownEvent;
function isShuttingDown() {
let filePath = process.env.WEBJOBS_SHUTDOWN_FILE;
let fs = require('fs');
if (fs.existsSync(filePath)) {
return true;
}
else
{
return false;
}
}
}
-1
View File
@@ -33,7 +33,6 @@
<SubType>Code</SubType>
</Compile>
<Compile Include="File Storage.js" />
<Compile Include="Azure Web Job Shutdown.js" />
<Compile Include="Context.js">
<SubType>Code</SubType>
</Compile>