Пример #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);
        }
Пример #2
0
 protected virtual void OnEnded(GameEndEventArgs e)
 {
     if (Ended != null)
         Ended(this, e);
 }