franz/franz.tests/Program.cs

26 lines
737 B
C#
Raw Normal View History

using System;
using System.Threading.Tasks;
namespace franz.tests
{
class Program
{
static async Task Main(string[] args)
{
Console.WriteLine("Hello World!");
Telefranz.Configure("libfranztest1", "focalor:9092");
var f1Reported = false;
Telefranz.Instance.addHandler<silver_messages.global.report>((r) => {
Console.WriteLine($"someone reporting. {r}");
if(r.name =="libfranztest1")
{
f1Reported = true;
Console.WriteLine("f1 reported");
}
});
await Task.Delay(1000);
Console.WriteLine("done I guess?");
}
}
}