public TestDetailsViewModel(Test test, ITestItemViewModelFactory testItemViewModelFactory, ILogFileManager logFileManager, ILogController logController, IAppController appController, IRecordingController recordingController, ITrainingController trainingController, IEventAggregator eventAggregator) { this.test = test; this.testItemViewModelFactory = testItemViewModelFactory; this.logFileManager = logFileManager; this.logController = logController; this.appController = appController; this.recordingController = recordingController; this.trainingController = trainingController; eventAggregator.GetEvent<AddTestItemEvent>().Subscribe(AddTestItemEventHandler); //TestItems = new ObservableCollection<ITestItemViewModel>(test.TestItems.Select(testItemViewModelFactory.Create)); RefreshTestItems(); PlayCommand = new DelegateCommand(ExecutePlayCommand); AppendToEndOfTestCommand = new DelegateCommand(ExecuteAppendToEndOfTestCommand); AppendToStartOfTestCommand = new DelegateCommand(ExecuteAppendToStartOfTestCommand); AppendAfterSelectedItemCommand = new DelegateCommand(ExecuteAppendAfterSelectedItemCommand); DeleteSelectedItemCommand = new DelegateCommand(ExecuteDeleteSelectedItemCommand); RefreshCommand = new DelegateCommand(ExecuteRefresh); RunAsTrainingCommand = new DelegateCommand(EecuteRunAsTrainingCommand); }
public LogNode(ProjectFile logFile, ILogFileManager logFileManager, ILogController logController) { this.logFile = logFile; this.logFileManager = logFileManager; this.logController = logController; DefaultCommand = new DelegateCommand(ExecuteDefaultCommand); }
public static void TryWriteLogObject(this object obj, ILogFileManager logFileManager, IClientFeatures clientFeatures, LogType logType = LogType.Info, bool indented = true) { try { logFileManager.WriteText(obj.BuildLogObject(clientFeatures).Stringify(indented) + "\n"); } catch (Exception ex) { try { logFileManager.WriteText(ex.BuildLogObject(clientFeatures).Stringify(indented) + "\n"); } catch { } } }
public BasicAuthenticationAttribute() { _logFileManager = new LogFileManager(LogKeys.LogPath, LogKeys.LogName); _clientFeatures = new ClientFeatures(); }
public BaseController() { _logFileManager = new LogFileManager(LogKeys.LogPath, LogKeys.LogName); _clientFeatures = new ClientFeatures(); }
public LogFileProcessJob(ILogFileManager logFileManager) { this.logFileManager = logFileManager; semaphore = new SemaphoreSlim(1); }
public UploadLogModel(ILogFileManager logFileManager, IMapper mapper) { this.logFileManager = logFileManager; this.mapper = mapper; }