richardschneider / net-ipfs-http-client

InterPlanetary File System client for .Net (C#, VB, F# ...)
MIT License
158 stars 52 forks source link

Can you provide examples on how to use this library. #36

Closed ghost closed 6 years ago

ghost commented 6 years ago

I'm not advanced in C# and i'm seeing things I've never used before.

I'm trying to get a list of swarm peers.

richardschneider commented 6 years ago

I'm not advanced in C# and i'm seeing things I've never used before

What are the things you never used before?

Have you read the ISwarmApi and Peer documentation?

richardschneider commented 6 years ago

An example

var ipfs = new IpfsClient();
var peers = await ipfs.Swarm.PeersAsync();
foreach (var peer in peers)
{
  ...
}
richardschneider commented 6 years ago

@RyanJEC does the above answer your questions?