mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-15 19:38:11 +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;
|
_proxy = proxy;
|
||||||
}
|
}
|
||||||
|
|
||||||
//[Function("QueueProxyHearbeat")]
|
[Function("QueueProxyUpdate")]
|
||||||
public async Async.Task Run([QueueTrigger("myqueue-items", Connection = "AzureWebJobsStorage")] string msg) {
|
public async Async.Task Run([QueueTrigger("proxy", Connection = "AzureWebJobsStorage")] string msg) {
|
||||||
_log.Info($"heartbeat: {msg}");
|
_log.Info($"heartbeat: {msg}");
|
||||||
|
|
||||||
var hb = JsonSerializer.Deserialize<ProxyHeartbeat>(msg, EntityConverter.GetJsonSerializerOptions()).EnsureNotNull($"wrong data {msg}"); ;
|
var hb = JsonSerializer.Deserialize<ProxyHeartbeat>(msg, EntityConverter.GetJsonSerializerOptions()).EnsureNotNull($"wrong data {msg}"); ;
|
@ -12,8 +12,8 @@ public class QueueWebhooks {
|
|||||||
_webhookMessageLog = webhookMessageLog;
|
_webhookMessageLog = webhookMessageLog;
|
||||||
}
|
}
|
||||||
|
|
||||||
//[Function("QueueWebhooks")]
|
[Function("QueueWebhooks")]
|
||||||
public async Async.Task Run([QueueTrigger("myqueue-items", Connection = "AzureWebJobsStorage")] string msg) {
|
public async Async.Task Run([QueueTrigger("webhooks", Connection = "AzureWebJobsStorage")] string msg) {
|
||||||
|
|
||||||
_log.Info($"Webhook Message Queued: {msg}");
|
_log.Info($"Webhook Message Queued: {msg}");
|
||||||
|
|
||||||
|
@ -1147,6 +1147,7 @@ class Client:
|
|||||||
],
|
],
|
||||||
env=dict(os.environ, CLI_DEBUG="1"),
|
env=dict(os.environ, CLI_DEBUG="1"),
|
||||||
)
|
)
|
||||||
|
|
||||||
# enable dotnet function
|
# enable dotnet function
|
||||||
logger.info(f"enabling DOTNET function: {dotnet_name}")
|
logger.info(f"enabling DOTNET function: {dotnet_name}")
|
||||||
subprocess.check_output(
|
subprocess.check_output(
|
||||||
|
Reference in New Issue
Block a user