public async override Task<bool> InvokeAsync(string paramList) { var initaiteBusiness = new DataInitiator(_configBusiness, _counterBusiness); var messages = initaiteBusiness.CreateAll(); foreach (var message in messages) { OutputLine(message.Item1, message.Item2); } return true; }
private bool InitiateDefaultCounters() { var initaiteBusiness = new DataInitiator(_configBusiness, _counterBusiness); var messages = initaiteBusiness.CreateAll(); var someIssue = false; foreach (var message in messages) { OutputLine(message.Item1, message.Item2); if (message.Item2 == OutputLevel.Error) { someIssue = true; } } return !someIssue; }