Esempio n. 1
0
        public DeviceDetailsViewModel(IDeployService deployService, INavigationService navigationService)
        {
            this._deployService     = deployService;
            this._navigationService = navigationService;

            this.CreateCommands();
        }
        public SplashViewModel(INavigationService navigationService, IDeployService deployService)
        {
            this._navigationService = navigationService;
            this._deployService     = deployService;

            this.CreateCommands();
        }
Esempio n. 3
0
        public App(
            string connectionString,
            IAttributeService attributeService,
            IDatabaseService databaseService,
            ITableService tableService,
            ILinkService linkService,
            IDeployService deployService,
            IDatabaseValidator databaseValidator,
            ITableValidator tableValidator,
            IAttributeValidator attributeValidator,
            ICRUD crudService)
        {
            _defaultConnectionString = connectionString;
            // sorry for this
            _serverName = new Regex("(?:[Dd]ata\\s+[Ss]ource\\s*=\\s*)(?<server>.*?);")
                          .Match(input: _defaultConnectionString)
                          .Groups["server"]
                          .Value;

            _attributeService   = attributeService;
            _databaseService    = databaseService;
            _tableService       = tableService;
            _linkService        = linkService;
            _deployService      = deployService;
            _databaseValidator  = databaseValidator;
            _tableValidator     = tableValidator;
            _attributeValidator = attributeValidator;
            _crudService        = crudService;
        }
Esempio n. 4
0
        public HomePage(ISandboxInfoService service, IDeployService deployService)
        {
            InitializeComponent();

            this.sandboxInfoService = service;
            this.deployService      = deployService;

            GetSandboxes();
        }
        public MainWindow(ISandboxInfoService sandboxInfoService, IDeployService deployService)
        {
            InitializeComponent();

            this.sandboxInfoService = sandboxInfoService;
            this.deployService      = deployService;

            WindowStartupLocation = WindowStartupLocation.CenterScreen;
            this.NavigationService.Navigate(new HomePage(sandboxInfoService, deployService));
        }
 public TemplateCommandProvider(ITemplateCommandBuilder templateCommandBuilder, ITemplateRepository repository, IEntityFactory entityFactory, ITemplateFileGenerator templateFileGenerator, IUserInterface userInterface, IDeployService deployService, IEnumerable <IDeployStep> deploySteps, ExecutionContext executionContext)
 {
     this.templateCommandBuilder = templateCommandBuilder;
     this.repository             = repository;
     this.entityFactory          = entityFactory;
     this.templateFileGenerator  = templateFileGenerator;
     this.userInterface          = userInterface;
     this.deployService          = deployService;
     this.deploySteps            = deploySteps;
     this.executionContext       = executionContext;
 }
Esempio n. 7
0
        public DeployPage(ISandboxInfoService service, IDeployService deployService, Sandbox sandBox)
        {
            InitializeComponent();
            this.sandboxInfoService = service;
            this.deployService      = deployService;

            ValidateSandBoxInfo(sandBox);

            SandBoxInfo      = sandBox;
            this.DataContext = SandBoxInfo;
        }
Esempio n. 8
0
        /// <summary>
        /// Initializes a new <see cref="ClerkController"/>.
        /// </summary>
        /// <param name="logService">Service used for logging.</param>
        /// <param name="syncService">Service used to synchronize the packages.</param>
        /// <param name="deployService">Service used for announcing deployments.</param>
        /// <param name="scheduleService">Service used for controlling fusions.</param>
        public ClerkController(
            ILog logService,
            ISyncService syncService,
            IDeployService deployService,
            IScheduleService scheduleService)
        {
            this.logService = logService;

            this.syncService     = syncService;
            this.deployService   = deployService;
            this.scheduleService = scheduleService;
        }
Esempio n. 9
0
        private void ConsumeService(IDeployService service, DeployMode mode)
        {
            if (!service.OpenSession(_surveyName))
            {
                throw new InvalidOperationException("Session wasn't opened");
            }

            foreach (var chunk in _files.Chunks)
            {
                service.SendFilesChunk(chunk);
            }

            service.Deploy(GetDeployContext(mode), MD5.Create().ComputeHash(_files.Bytes));
        }
Esempio n. 10
0
        public MainForm(
            ILogger <MainForm> logger,
            IMapper mapper,
            ICatalogConfigRepository catalogConfigRepository,
            ICatalogRepository catalogRepository,
            IDeployWorkConfigRepository deployWorkConfigRepository,
            IDeployService deployService,
            IOptions <AppSettings> appSettings)
        {
            _logger = logger;
            _mapper = mapper;
            _catalogConfigRepository    = catalogConfigRepository;
            _catalogRepository          = catalogRepository;
            _deployWorkConfigRepository = deployWorkConfigRepository;
            _deployService = deployService;
            _appSettings   = appSettings;

            InitializeComponent();
            SetupControls();
        }
        public AppController(
            IUnityContainer container,
            IEventAggregator eventAggregator,
            IRegionManager regionManager,
            IRemoteService remoteService,
            IDeployService deployService,
            IScreenshotService screenshotService)
        {
            _container         = container;
            _eventAggregator   = eventAggregator;
            _regionManager     = regionManager;
            _remoteService     = remoteService;
            _deployService     = deployService;
            _screenshotService = screenshotService;
            _container         = container;

            _injectStrings = new Dictionary <DebuggerCommandEnum, string>();
            _injectStrings.Add(DebuggerCommandEnum.bt, "Backtrace: ");
            _injectStrings.Add(DebuggerCommandEnum.var, "Local Variables: ");
            _injectStrings.Add(DebuggerCommandEnum.list, "Current Function: ");
        }
Esempio n. 12
0
 public ConfigDbProvider(Action <DbContextOptionsBuilder> options,
                         IDeployService deployService)
 {
     _options       = options;
     _deployService = deployService;
 }
Esempio n. 13
0
 public DeployHub(IDeployService deployService)
 {
     _deployService = deployService;
 }
Esempio n. 14
0
 public DeployHub(IDeployService deployService)
 {
     this._deployService = deployService;
 }
Esempio n. 15
0
        private void ConsumeService(IDeployService service, DeployMode mode)
        {
            if (!service.OpenSession(_surveyName))
                throw new InvalidOperationException("Session wasn't opened");

            foreach (var chunk in _files.Chunks)
                service.SendFilesChunk(chunk);

            service.Deploy(GetDeployContext(mode), MD5.Create().ComputeHash(_files.Bytes));
        }
Esempio n. 16
0
 public DeployController(IDeployService service, IConfiguration config)
 {
     _service = service;
     _config  = config;
 }