mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-15 11:28:09 +00:00
Enabling csharp webhook and proxy heartbeat functions (#2263)
* Enabling csharp webhook and proxy heartbeat trigger * Adding deploy exemption. * Fixing queue table. * Adding function to bicep. * Renaming function.
This commit is contained in:
committed by
GitHub
parent
f5b647ef1b
commit
f134c0f122
@ -14,8 +14,8 @@ public class QueueProxyHearbeat {
|
||||
_proxy = proxy;
|
||||
}
|
||||
|
||||
//[Function("QueueProxyHearbeat")]
|
||||
public async Async.Task Run([QueueTrigger("myqueue-items", Connection = "AzureWebJobsStorage")] string msg) {
|
||||
[Function("QueueProxyUpdate")]
|
||||
public async Async.Task Run([QueueTrigger("proxy", Connection = "AzureWebJobsStorage")] string msg) {
|
||||
_log.Info($"heartbeat: {msg}");
|
||||
|
||||
var hb = JsonSerializer.Deserialize<ProxyHeartbeat>(msg, EntityConverter.GetJsonSerializerOptions()).EnsureNotNull($"wrong data {msg}"); ;
|
@ -12,8 +12,8 @@ public class QueueWebhooks {
|
||||
_webhookMessageLog = webhookMessageLog;
|
||||
}
|
||||
|
||||
//[Function("QueueWebhooks")]
|
||||
public async Async.Task Run([QueueTrigger("myqueue-items", Connection = "AzureWebJobsStorage")] string msg) {
|
||||
[Function("QueueWebhooks")]
|
||||
public async Async.Task Run([QueueTrigger("webhooks", Connection = "AzureWebJobsStorage")] string msg) {
|
||||
|
||||
_log.Info($"Webhook Message Queued: {msg}");
|
||||
|
||||
|
@ -1147,6 +1147,7 @@ class Client:
|
||||
],
|
||||
env=dict(os.environ, CLI_DEBUG="1"),
|
||||
)
|
||||
|
||||
# enable dotnet function
|
||||
logger.info(f"enabling DOTNET function: {dotnet_name}")
|
||||
subprocess.check_output(
|
||||
|
Reference in New Issue
Block a user