Beispiel #1
0
        public DeleteLineActor(LineService lineService)
        {
            _lineService = lineService;

            Receive <string>(message =>
            {
                if (string.Equals(message, startCommand, System.StringComparison.OrdinalIgnoreCase))
                {
                    _lineService.RemoveAll();
                    Sender.Tell(true);
                }
            });
        }