示例#1
0
     public async ValueTask <NewMessageResponse> NewMessageAsync(Message message)
     {
         if (HashUtil.GetHash(message) != message.Hash)
         {
             return new NewMessageResponse()
                    {
                        Code = 1001, Error = "Illegal Message"
                    }
         }
         ;
         return(new NewMessageResponse());
     }
 }
 public Message()
 {
     Hash = HashUtil.GetHash(this);
 }