public override void sayHello(HelloMessage message)
        {
            if (OnSayHello != null)
            {
                OnSayHello(message);
            }

            base.sayHello(message);
        }
        public static HelloMessage CreateHelloMessage(string dest, string source, PeerStatus status, EnergyType enType,
                                                      float enProduced, float enPeak, float enPrice, string address, string admin)
        {
            HelloMessage message = new HelloMessage()
            {
                header     = Tools.getHeader(dest, source),
                Status     = status,
                EnType     = enType,
                EnProduced = enProduced,
                EnPeak     = enPeak,
                EnPrice    = enPrice,
                Address    = address,
                Admin      = admin
            };

            return(message);
        }
示例#3
0
 public virtual void sayHello(HelloMessage message)
 {
     //foo;
 }