mirror of
https://github.com/bitwarden/server
synced 2025-12-17 16:53:23 +00:00
events processor web job project
This commit is contained in:
17
src/EventsProcessor/Functions.cs
Normal file
17
src/EventsProcessor/Functions.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.Azure.WebJobs;
|
||||
|
||||
namespace Bit.EventsProcessor
|
||||
{
|
||||
public class Functions
|
||||
{
|
||||
public async static Task ProcessQueueMessageAsync(
|
||||
[QueueTrigger("event")] string message, TextWriter logger, CancellationToken token)
|
||||
{
|
||||
await logger.WriteLineAsync(message);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user