Exemplo n.º 1
0
        public AppUpdaterContext(App app, AppUpdaterConfiguration configuration, ILicenseDialog licenseDialog)
        {
            Checks.ArgumentNotNull(app, "app");
            Checks.ArgumentNotNull(licenseDialog, "licenseDialog");

            App           = app;
            Configuration = configuration;
            LicenseDialog = licenseDialog;
        }
        public AppUpdaterContext(App app, AppUpdaterConfiguration configuration, IStatusMonitor statusMonitor, ILicenseDialog licenseDialog)
        {
            Checks.ArgumentNotNull(app, "app");
            Checks.ArgumentNotNull(statusMonitor, "statusMonitor");
            Checks.ArgumentNotNull(licenseDialog, "licenseDialog");

            App           = app;
            Configuration = configuration;
            StatusMonitor = statusMonitor;
            LicenseDialog = licenseDialog;
        }
 public AppUpdater(App app, AppUpdaterConfiguration configuration) : this(
         new AppUpdaterStrategyResolver(), new AppUpdaterContext(app, configuration))
 {
 }
 public AppUpdaterContext(App app, AppUpdaterConfiguration configuration) :
     this(app, configuration, new StatusMonitor(), UI.Dialogs.LicenseDialog.Instance)
 {
 }