Пример #1
0
 internal void OnNewMessage(ServerHandlerEventArgs e)
 {
     if (NewMessage != null)
     {
         NewMessage.Invoke(this, e);
     }
 }
Пример #2
0
        private static void Server_NewMessage(object sender, ServerHandlerEventArgs e)
        {
            var message = Encoding.UTF8.GetString(e.message);
            var obj     = JsonConvert.DeserializeObject <Block>(message);

            server.sendToAllExept(e.ClientGuid.ToString(), message);
            blockChain.AddBlock(obj);
            //robbCoin.AddBlock(new Block(DateTime.Now, null, "{sender:Robban,reciver:Linus,amount:100"));
        }
Пример #3
0
 private void Server_NewMessage(object sender, ServerHandlerEventArgs e)
 {
     IncommingMessage(e.message, e.ClientGuid);
 }