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); }
public void SaveChain() { FileHandler.Save(User.Username + FileHandler.ChainPath, chain.AsXML()); }