Adam R. Grey
07a5f0a5f4
kind of wrecked my ability to use telefranz.tests, but I'm not going to ruin my entire design just for the fun of writing twice as much code for no benefit
26 lines
737 B
C#
26 lines
737 B
C#
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?");
|
|
}
|
|
}
|
|
}
|