LoklakDotNet.Loklak.peers C# (CSharp) Method

peers() public method

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
return Task
        public async Task<string> peers()
        {
            return (await ProcessUrlAsync("peers.json"));
        }

Usage Example

コード例 #1
0
ファイル: UnitTest1.cs プロジェクト: aneeshd16/LoklakDotNet
 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);
 }