public DfsService(IBitSwapApi bitSwapApi, BitSwapService bitSwapService, IBlockApi blockApi, IBlockRepositoryApi blockRepositoryApi, IBootstrapApi bootstrapApi, IConfigApi configApi, IDagApi dagApi, IDhtApi dhtApi, IDnsApi dnsApi, KatDhtService dhtService, IUnixFsApi unixFsApi, IKeyApi keyApi, INameApi nameApi, IObjectApi objectApi, IPinApi pinApi, Ping1 pingService, IPubSubApi pubSubApi, PubSubService pubSubService, IStatsApi statsApi, ISwarmApi swarmApi, SwarmService swarmService, DfsOptions dfsOptions, IHashProvider hashProvider, DfsState dfsState, IPasswordManager passwordManager, IMigrationManager migrationManager, Peer localPeer) { BitSwapApi = bitSwapApi; BitSwapService = bitSwapService; BlockApi = blockApi; BlockRepositoryApi = blockRepositoryApi; BootstrapApi = bootstrapApi; ConfigApi = configApi; DagApi = dagApi; DhtApi = dhtApi; DhtService = dhtService; UnixFsApi = unixFsApi; KeyApi = keyApi; NameApi = nameApi; ObjectApi = objectApi; PinApi = pinApi; PingService = pingService; PubSubApi = pubSubApi; PubSubService = pubSubService; StatsApi = statsApi; SwarmApi = swarmApi; SwarmService = swarmService; Options = dfsOptions; _hashProvider = hashProvider; _dfsState = dfsState; DnsApi = dnsApi; MigrationManager = migrationManager; LocalPeer = localPeer; InitAsync().Wait(); }
/// <summary> /// </summary> /// <param name="bitSwapApi"></param> /// <param name="dhtApi"></param> /// <param name="swarmApi"></param> /// <param name="dfsOptions"></param> public BlockApi(IBitSwapApi bitSwapApi, IDhtApi dhtApi, ISwarmApi swarmApi, DfsState dfsState, DfsOptions dfsOptions) { _bitSwapApi = bitSwapApi; _dhtApi = dhtApi; _swarmApi = swarmApi; _dfsOptions = dfsOptions; _dfsState = dfsState; }
public StatsApi(IBitSwapApi bitSwapApi, IBlockRepositoryApi blockRepositoryApi) { _bitSwapApi = bitSwapApi; _blockRepositoryApi = blockRepositoryApi; }