コード例 #1
0
        public AckMessage SendChain(Chain chain)
        {
            var channel = OpenConnection();
            var client  = new PublisherServer.PublisherServerClient(channel);

            var response = client.ReceiveChain(new ChainMessage
            {
                SenderAddress = new ServerAddressMessage()
                {
                    Ip = selfAddress.Ip
                    ,
                    Port = selfAddress.Port
                }
                ,
                Xml = chain.AsXML()
            });

            return(response);
        }
コード例 #2
0
 public void SaveChain()
 {
     FileHandler.Save(User.Username + FileHandler.ChainPath, chain.AsXML());
 }