Esempio n. 1
0
 public StatusViewModel(PublishManager manager)
 {
     _manager    = manager;
     _ipfsDaemon = _manager.IpfsDaemon;
     IpfsStatus  = "Idle";
     _ipfsDaemon.OnStateChanged += _ipfsDaemon_OnStateChanged;
 }
Esempio n. 2
0
        public DeploymentManager(Dispatcher dispatcher, ILogger logger, Action raiseUi)
        {
            Dispatcher = dispatcher;
            L          = logger;
            _raiseUi   = raiseUi;

            Daemon = new IpFsDaemon(this);
            Api    = new IpFsApi(this);
        }
Esempio n. 3
0
 public StatusViewModel(DeploymentManager manager)
 {
     _manager    = manager;
     _ipfsDaemon = _manager.Daemon;
     IpfsStatus  = "Idle";
     DnsStatus   = "Idle";
     _ipfsDaemon.OnStateChanged += _ipfsDaemon_OnStateChanged;
     _manager.OnDnsRetrieved    += _manager_OnDnsRetrieved;
 }
Esempio n. 4
0
 public IpFsApi(IpFsDaemon daemon)
 {
     _daemon = daemon;
     _client = daemon.Client;
     L       = daemon.L;
 }
Esempio n. 5
0
 public Radiant(ILogger logger)
 {
     L          = logger;
     IpfsDaemon = new IpFsDaemon(logger);
     IpFsApi    = new IpFsApi(IpfsDaemon);
 }