Ejemplo n.º 1
0
        public NativeUpdateHandler(IConfiguration config, ICloudApi api)
        {
            _config = config;
            _api    = api;

            _timer.Elapsed += _timer_Elapsed;
        }
Ejemplo n.º 2
0
        public AutomaticUpdate(ICoreServer server, IConfiguration config, ICloudApi api)
        {
            _server = server;
            _config = config;
            _api    = api;

            _timer.Elapsed += _timer_Elapsed;
        }
Ejemplo n.º 3
0
 public PluginDownloader(Plugin plugin, bool install, ICloudApi cloudApi, IHubContext <UpdateHub> updateHub, ICoreServer coreServer, bool restartOnUpdate = true)
 {
     _plugin          = plugin;
     _install         = install;
     _api             = cloudApi;
     _updateHub       = updateHub;
     _coreServer      = coreServer;
     _restartOnUpdate = restartOnUpdate;
 }
Ejemplo n.º 4
0
        public UpdateHub(ICloudApi api, IHubContext <UpdateHub> updateHub, ICoreServer coreServer, IPluginLoader loader, IHubSemaphoreFactory semaphoreFactory)
        {
            _api        = api;
            _updateHub  = updateHub;
            _coreServer = coreServer;
            _loader     = loader;


            _semaphore = semaphoreFactory.GetSemaphore(nameof(UpdateHub));
        }
Ejemplo n.º 5
0
        private void AddNewDiskAddingButton(ICloudApi api)
        {
            var btn = new Button();

            btn.FlatAppearance.BorderSize = 0;
            btn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            btn.ForeColor = System.Drawing.SystemColors.ButtonFace;
            btn.Image     = api.Resources.MainLogo;
            btn.Location  = new System.Drawing.Point(35, 35);
            btn.Margin    = new System.Windows.Forms.Padding(10);
            btn.Size      = new System.Drawing.Size(200, 190);
            btn.TabIndex  = 0;
            btn.TabStop   = false;
            btn.Tag       = api.Drive;
            btn.Text      = api.Resources.DriveTypeName;
            btn.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
            btn.UseVisualStyleBackColor = true;
            btn.Click += OnNewDriveButton_Click;
            this.addDiskSelectPanel.Controls.Add(btn);
        }
Ejemplo n.º 6
0
 public PluginsController(AutomaticaContext dbContext, ICloudApi api, ICoreServer coreServer) : base(dbContext)
 {
     _api        = api;
     _coreServer = coreServer;
 }
Ejemplo n.º 7
0
 public UpdateHub(ICloudApi api, IHubContext <UpdateHub> updateHub, ICoreServer coreServer)
 {
     _api        = api;
     _updateHub  = updateHub;
     _coreServer = coreServer;
 }
Ejemplo n.º 8
0
 public UpdateController(AutomaticaContext dbContext, ICloudApi api, ICoreServer coreServer) : base(dbContext)
 {
     this.api   = api;
     CoreServer = coreServer;
 }
Ejemplo n.º 9
0
 public PluginsController(AutomaticaContext dbContext, ICloudApi api) : base(dbContext)
 {
     _api = api;
 }