telefranzable
make me a template
This commit is contained in:
parent
7fea9e9264
commit
d2c2da6808
18
Program.cs
18
Program.cs
@ -1,12 +1,24 @@
|
||||
using System;
|
||||
using franz;
|
||||
|
||||
namespace MyApp
|
||||
namespace PlaceholderVO
|
||||
{
|
||||
internal class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
public static Telefranz telefranz;
|
||||
|
||||
static async Task Main(string[] args)
|
||||
{
|
||||
Telefranz.Configure(name: "balaam placeholder VO", bootstrap_servers: "alloces:9092",
|
||||
commands: ["speak"]);
|
||||
telefranz = Telefranz.Instance;
|
||||
|
||||
await Task.Delay(1000);
|
||||
telefranz.ProduceMessage(new gray_messages.global.sound_off());
|
||||
Console.WriteLine("Hello World!");
|
||||
|
||||
await Task.Delay(-1);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -8,4 +8,8 @@
|
||||
<Nullable>disable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="greyn.franz" Version="2.1.0" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
Loading…
Reference in New Issue
Block a user