Ejemplo n.º 1
0
 public ServerRolesViewModel(IDatabaseService databaseService,
                             IShellManager shellManager, IMessageBoxHelper messageBoxHelper)
 {
     _databaseService  = databaseService;
     _shellManager     = shellManager;
     _messageBoxHelper = messageBoxHelper;
 }
Ejemplo n.º 2
0
        protected override DependencyObject CreateShell()
        {
            InitAppContext();
            if (_cfg == null)
            {
                return(null);
            }
            if (_cfg.Shells == null)
            {
                return(null);
            }

            IShellManager shellManager = Container.GetExportedValue <IShellManager>();

            foreach (XShellConfig shellCfg in _cfg.Shells)
            {
                string shellName = shellCfg.Name;
                IShell shell     = Container.GetExportedValue <IShell>(shellName);
                shell.ShellName = shellName;
                shellManager.RegisterShell(shell);
                if (shellCfg.ShowOnStartup)
                {
                    shell.ShowShell();
                }
            }

            return(null);
        }
Ejemplo n.º 3
0
 public LoginDetailsViewModel(IMessageBoxHelper messageBoxHelper, IDatabaseService databaseService,
                              IShellManager shellManager, IResolver resolver)
 {
     _messageBoxHelper = messageBoxHelper;
     _databaseService  = databaseService;
     _shellManager     = shellManager;
     _resolver         = resolver;
 }
Ejemplo n.º 4
0
 public LoginViewModel(IMessageBoxHelper messageBoxHelper, IShellManager shellManager,
                       IDatabaseService databaseService, IRegistryService registryService)
 {
     _messageBoxHelper = messageBoxHelper;
     _shellManager     = shellManager;
     _databaseService  = databaseService;
     _registryService  = registryService;
 }
Ejemplo n.º 5
0
 public ServerExplorerViewModel(IDatabaseService databaseService, IShellManager shellManager,
                                IMessageBoxHelper messageBoxHelper, IResolver resolver)
 {
     _databaseService  = databaseService;
     _shellManager     = shellManager;
     _messageBoxHelper = messageBoxHelper;
     _resolver         = resolver;
 }
Ejemplo n.º 6
0
        public InteractiveWorkflow(IShellManager shellManager, ITargetFileNameComposer targetFileNameComposer, IJobDataUpdater jobDataUpdater, IPathSafe pathSafe, IErrorNotifier errorNotifier, ISettingsProvider settingsProvider, IFileNameQuery saveFileQuery, ICommandLocator commandLocator)
        {
            _shellManager           = shellManager;
            _pathSafe               = pathSafe;
            _errorNotifier          = errorNotifier;
            _settingsProvider       = settingsProvider;
            _saveFileQuery          = saveFileQuery;
            _commandLocator         = commandLocator;
            _targetFileNameComposer = targetFileNameComposer;

            JobDataUpdater          = jobDataUpdater;
            _targetFileNameComposer = targetFileNameComposer;
        }
Ejemplo n.º 7
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="activity"></param>
        /// <param name="shellManager"></param>
        public AbstractExecutor(ExecutionActivity activity, IShellManager shellManager)
        {
            this.Activity = activity;
            _shellManager = shellManager;

            //// Get script for the activity through activity script provider
            this.ActivityScriptMap = ActivityScriptProvider.GetActivityScriptMap(activity.Operation);
            if (!string.IsNullOrWhiteSpace(this.ActivityScriptMap.ExecutionScriptFile))
            {
                var executionScript = File.ReadAllText(Path.Combine(Constants.PowershellScripts.ScriptsFolder, this.ActivityScriptMap.ExecutionScriptFile));
                this.ActivityScriptMap.ExecutionScript = executionScript;
            }
            if (!string.IsNullOrWhiteSpace(this.ActivityScriptMap.VerificationScriptFile))
            {
                var verificationScript = File.ReadAllText(Path.Combine(Constants.PowershellScripts.ScriptsFolder, this.ActivityScriptMap.VerificationScriptFile));
                this.ActivityScriptMap.VerificationScript = verificationScript;
            }
        }
Ejemplo n.º 8
0
        public InteractiveWorkflow(IShellManager shellManager, ITargetFilePathComposer targetFilePathComposer, IJobDataUpdater jobDataUpdater,
                                   IErrorNotifier errorNotifier, ISettingsProvider settingsProvider,
                                   ICommandLocator commandLocator, ILastSaveDirectoryHelper lastSaveDirectoryHelper,
                                   IDirectoryHelper directoryHelper, IInteractiveProfileChecker interactiveProfileChecker,
                                   IJobEventsManager jobEventsManager
                                   )
        {
            _shellManager              = shellManager;
            _errorNotifier             = errorNotifier;
            _settingsProvider          = settingsProvider;
            _commandLocator            = commandLocator;
            _lastSaveDirectoryHelper   = lastSaveDirectoryHelper;
            _directoryHelper           = directoryHelper;
            _interactiveProfileChecker = interactiveProfileChecker;
            _targetFilePathComposer    = targetFilePathComposer;

            JobDataUpdater          = jobDataUpdater;
            JobEventsManager        = jobEventsManager;
            _targetFilePathComposer = targetFilePathComposer;
        }
Ejemplo n.º 9
0
 public MainShellLauncher(IThreadManager threadManager, IShellManager shellManager, IEventAggregator eventAggregator)
 {
     _threadManager   = threadManager;
     _shellManager    = shellManager;
     _eventAggregator = eventAggregator;
 }
 public CopyFilesExecutor(ExecutionActivity activity, IShellManager shellManager)
     : base(activity, shellManager)
 {
     logger = LogManager.GetLogger(typeof(CopyFilesExecutor));
 }
Ejemplo n.º 11
0
 public StartIISWebsiteExecutor(ExecutionActivity activity, IShellManager shellManager)
     : base(activity, shellManager)
 {
     logger = LogManager.GetLogger(typeof(StartIISWebsiteExecutor));
 }
Ejemplo n.º 12
0
 public SvnCheckoutExecutor(ExecutionActivity activity, IShellManager shellManager)
     : base(activity, shellManager)
 {
     logger = LogManager.GetLogger(typeof(SvnCheckoutExecutor));
 }
 public StopServiceExecutor(ExecutionActivity activity, IShellManager shellManager)
     : base(activity, shellManager)
 {
     logger = LogManager.GetLogger(typeof(StopServiceExecutor));
 }
 public MsBuildExecutor(ExecutionActivity activity, IShellManager shellManager)
     : base(activity, shellManager)
 {
     logger = LogManager.GetLogger(typeof(MsBuildExecutor));
 }
 public AddSslCertificateExecutor(ExecutionActivity activity, IShellManager shellManager)
     : base(activity, shellManager)
 {
     logger = LogManager.GetLogger(typeof(AddSslCertificateExecutor));
 }
Ejemplo n.º 16
0
 public MainShellLauncher(IThreadManager threadManager, IShellManager shellManager)
 {
     _threadManager = threadManager;
     _shellManager  = shellManager;
 }
 public GitCloneExecutor(ExecutionActivity activity, IShellManager shellManager)
     : base(activity, shellManager)
 {
     logger = LogManager.GetLogger(typeof(GitCloneExecutor));
 }