title: MVVM Light Messenger
body: <p>I am new to MVVM Light and I am trying to learn and implement the Messenger class.  I have read many other messenger tutorials and posts but still can't get it to work.  Below is some code I wrote to help me learn.  From my research I think I have everything implemented correctly but it does not work.  Does anyone know what I am doing wrong? </p>
  
  <pre><code>public class MainViewModel : ViewModelBase
  {
      public MainViewModel() { }  
  
      private RelayCommand _sendMessage;  
      public RelayCommand SendMessage
      {
          get
          {
              return _sendMessage
                  ?? (_sendMessage = new RelayCommand(
                                        () =&gt;
                                        {
                                            var pInfo = new PersonalInfo { Name = "Some Name", Age = 31 };
                                            Messenger.Default.Send(pInfo);                                            
                                        }));
          }
      }
  
  } 
  
  public class MessageReciever
  {
      public MessageReciever()
      {          
          Messenger.Default.Register&lt;PersonalInfo&gt;(this,
              action =&gt;
              {
                  Debug.WriteLine(action.Age);
                  Debug.WriteLine(action.Name);
              }
              );
      }    
  }
  
  public class PersonalInfo
  {
      public string Name { get; set; }
      public int Age { get; set; }
  }
  </code></pre>