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