Add cancel
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user