コード例 #1
0
        public override void sayHello(HelloMessage message)
        {
            if (OnSayHello != null)
            {
                OnSayHello(message);
            }

            base.sayHello(message);
        }
コード例 #2
0
        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;
 }