Ejemplo n.º 1
0
 /// <summary>
 /// Performs custom actions on Live Connect message received</summary>
 /// <param name="sender">Sender</param>
 /// <param name="e">Event args</param>
 void s_liveConnectService_MessageReceived(object sender, LiveConnectService.LiveConnectMessageArgs e)
 {
     //For testing purposes we ignore messages from other machines so we don't have to worry
     //about messages from other machines interfering with a test
     if (e.SenderName.ToLower().Contains(Environment.MachineName.ToLower()))
     {
         s_lastMessage = e.MessageString;
     }
 }
Ejemplo n.º 2
0
 private static void liveConnectService_MessageReceived(object sender, LiveConnectService.LiveConnectMessageArgs e)
 {
     Outputs.WriteLine(OutputMessageType.Info, "{0} : {1}", e.SenderName, e.MessageString);
 }