﻿using Akka.Actor;
using System;

namespace Lighthouse
{
    internal class ServiceHost
    {
        private ActorSystem terminalSystem;
        private IActorRef actor;

        internal void Start()
        {
            terminalSystem = ActorSystem.Create("TerminalSystem");
            actor = terminalSystem.ActorOf<LighthouseKeeper>("LighthouseKeeper");
        }

        internal void Stop()
        {
            terminalSystem.Terminate();
        }
    }
}