Ejemplo n.º 1
0
        protected void game_Ended(object sender, GameEndEventArgs e)
        {
            var serializer = new JavaScriptSerializer();
            e.Message = string.Concat(DateTime.Now.ToShortTimeString(), ": ", e.Message);

            var returnMessage = serializer.Serialize(e);
            Clients.All.gameEnded(returnMessage);
        }
Ejemplo n.º 2
0
 protected virtual void OnEnded(GameEndEventArgs e)
 {
     if (Ended != null)
         Ended(this, e);
 }