Add cancel

This commit is contained in:
2017-01-26 08:36:54 -05:00
parent 295b40bed8
commit 4338b4fee5
30 changed files with 333 additions and 62 deletions
+7 -1
View File
@@ -35,7 +35,7 @@ namespace LeafWeb.WebCms.Services.PiscalQueue
if (!string.IsNullOrEmpty(_notifyCompleteUrl))
inputFile.NotifyCompleteUrl = _notifyCompleteUrl;
// TODO: remove this, just for testing
// NOTE: Assume that from this address we don't want to store it
if (string.Equals(leafInput.Email, "james.kolpack@gmail.com", StringComparison.InvariantCultureIgnoreCase))
inputFile.SuppressStorageCopy = true;
_piscalClient.RunLeafInput(inputFile);
@@ -64,5 +64,11 @@ namespace LeafWeb.WebCms.Services.PiscalQueue
var input = new PiscalLeafInput(leafInput);
_piscalClient.CleanupLeafProcess(input);
}
public void Kill(LeafInput leafInput)
{
var input = new PiscalLeafInput(leafInput);
_piscalClient.KillLeafProcess(input);
}
}
}