static void Main() { CoreCommandHandler coreCommandHandler = DependencyResolver.Container.Resolve <CoreCommandHandler>(); string command = GetCommand(); while (command != "exit") { coreCommandHandler.Handle(command); command = GetCommand(); } }
public Worker(CoreCommandHandler coreCommandHandler) { this.coreCommandHandler = coreCommandHandler; }