Пример #1
0
 public DataInfo Register(string username, string password)
 {
     var info = new PeerInfo()
     {
         Hash = BitConverter.ToString(_hash.ComputeHash(Encoding.UTF8.GetBytes(username + password)))
     };
     _distributionManager.DistributeAuthorizationData(info);
     throw new NotImplementedException();
 }
Пример #2
0
 public void DistributeAuthorizationData(PeerInfo info)
 {
     throw new NotImplementedException();
 }
Пример #3
0
 public string RetrieveAuthorizationData(string hash)
 {
     var data = new PeerInfo() {Data = "retrieved by hash"};
     return data.Data;
 }
Пример #4
0
 public void SavePeerInfo(PeerInfo info)
 {
     throw new NotImplementedException();
 }