Inheritance: INotifyPropertyChanged
Ejemplo n.º 1
0
        public HelloWorldModule(IActorRef moduleManagerActor, string name)
        {
            _moduleManagerActor = moduleManagerActor;
            _name = name;
            _vm = new HelloWorldVM();

            Receive<Messages.RequestClose>(x => Sender.Tell(true, Self));
            Receive<string>(x =>
            {
                System.Diagnostics.Debug.WriteLine(System.Threading.Thread.CurrentThread.ManagedThreadId);
                if (x.Contains("5"))
                    throw new Exception("I cannot handle 'five' messages");
                _vm.Text = string.Format("Hello {0}", x);
            });
        }