Modified a few for Example2

This commit is contained in:
sta
2014-10-03 15:32:50 +09:00
parent 0fc7c82e70
commit ca4fdabb2e
4 changed files with 34 additions and 31 deletions

View File

@@ -8,11 +8,8 @@ namespace Example2
{
protected override void OnMessage (MessageEventArgs e)
{
var name = Context.QueryString ["name"];
var msg = !name.IsNullOrEmpty ()
? String.Format ("'{0}' to {1}", e.Data, name)
: e.Data;
var name = Context.QueryString["name"];
var msg = !name.IsNullOrEmpty () ? String.Format ("'{0}' to {1}", e.Data, name) : e.Data;
Send (msg);
}
}