public NativeUpdateHandler(IConfiguration config, ICloudApi api) { _config = config; _api = api; _timer.Elapsed += _timer_Elapsed; }
public AutomaticUpdate(ICoreServer server, IConfiguration config, ICloudApi api) { _server = server; _config = config; _api = api; _timer.Elapsed += _timer_Elapsed; }
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; }
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)); }
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); }
public PluginsController(AutomaticaContext dbContext, ICloudApi api, ICoreServer coreServer) : base(dbContext) { _api = api; _coreServer = coreServer; }
public UpdateHub(ICloudApi api, IHubContext <UpdateHub> updateHub, ICoreServer coreServer) { _api = api; _updateHub = updateHub; _coreServer = coreServer; }
public UpdateController(AutomaticaContext dbContext, ICloudApi api, ICoreServer coreServer) : base(dbContext) { this.api = api; CoreServer = coreServer; }
public PluginsController(AutomaticaContext dbContext, ICloudApi api) : base(dbContext) { _api = api; }