public ServerRolesViewModel(IDatabaseService databaseService, IShellManager shellManager, IMessageBoxHelper messageBoxHelper) { _databaseService = databaseService; _shellManager = shellManager; _messageBoxHelper = messageBoxHelper; }
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); }
public LoginDetailsViewModel(IMessageBoxHelper messageBoxHelper, IDatabaseService databaseService, IShellManager shellManager, IResolver resolver) { _messageBoxHelper = messageBoxHelper; _databaseService = databaseService; _shellManager = shellManager; _resolver = resolver; }
public LoginViewModel(IMessageBoxHelper messageBoxHelper, IShellManager shellManager, IDatabaseService databaseService, IRegistryService registryService) { _messageBoxHelper = messageBoxHelper; _shellManager = shellManager; _databaseService = databaseService; _registryService = registryService; }
public ServerExplorerViewModel(IDatabaseService databaseService, IShellManager shellManager, IMessageBoxHelper messageBoxHelper, IResolver resolver) { _databaseService = databaseService; _shellManager = shellManager; _messageBoxHelper = messageBoxHelper; _resolver = resolver; }
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; }
/// <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; } }
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; }
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)); }
public StartIISWebsiteExecutor(ExecutionActivity activity, IShellManager shellManager) : base(activity, shellManager) { logger = LogManager.GetLogger(typeof(StartIISWebsiteExecutor)); }
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)); }
public MainShellLauncher(IThreadManager threadManager, IShellManager shellManager) { _threadManager = threadManager; _shellManager = shellManager; }
public GitCloneExecutor(ExecutionActivity activity, IShellManager shellManager) : base(activity, shellManager) { logger = LogManager.GetLogger(typeof(GitCloneExecutor)); }