LoklakDotNet.Loklak.peers C# (CSharp) 메소드

peers() 공개 메소드

This servlet combined the result of the hello calls from all peers and provides a list of addresses where the remote peers can be accessed.
public peers ( ) : Task
리턴 Task
        public async Task<string> peers()
        {
            return (await ProcessUrlAsync("peers.json"));
        }

Usage Example

예제 #1
0
 public async Task peers()
 {
     Loklak loklak = new Loklak();
     var result = await loklak.peers();
     var d = JObject.Parse(result);
     Assert.IsNotNull(d.Property("peers"));
     Assert.IsTrue(((JArray)d.GetValue("peers")).Count >= 0);
 }