/
Program.cs
25 lines (23 loc) · 941 Bytes
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// -----------------------------------------------------------------------
// <copyright file="Program.cs" company="Petabridge, LLC">
// Copyright (C) 2017 - 2017 Petabridge, LLC <https://petabridge.com>
// </copyright>
// -----------------------------------------------------------------------
using Akka.Actor;
using Petabridge.Cmd.Host;
namespace Petabridge.Cmd.QuickStart
{
internal class Program
{
private static void Main(string[] args)
{
using (var actorSys = ActorSystem.Create("MyActorSystem"))
{
var pbm = PetabridgeCmd.Get(actorSys); // creates the Petabridge.Cmd.Host
pbm.RegisterCommandPalette(new MsgCommandPaletteHandler()); // register custom command palette
pbm.Start(); // begins listening for incoming connections on Petabridge.Cmd.Host
actorSys.WhenTerminated.Wait();
}
}
}
}