public Queue(QueueMessage message, IBackend backend, ILog logger) { _backend = backend; _logger = logger; // Get the activityLog message from the main queue message alertContext = message.data.alertContext; // .context.activityLog; }
public AlertController(AlertContext context) { _context = context; if (_context.AlertItems.Count() == 0) { _context.AlertItems.Add(new AlertItem { Name = "Item1" }); _context.SaveChanges(); } }
public MateriasController(AlertContext context) { _context = context; }
private async Task <string> UpdateMessageWithSearchResultsAsync(string teamsMessageTemplate, AlertConfiguration alertConfiguration, AlertContext alertContext) { var result = await _queryResultFetcher.FetchLogQueryResultsAsync(alertContext.LinkToSearchResultsApi.ToString(), alertConfiguration.Context.ToString()); foreach (var table in result.Tables) { var tableIndex = Array.IndexOf(result.Tables, table) + 1; foreach (var row in table.Rows) { var rowIndex = Array.IndexOf(table.Rows, row) + 1; var columns = table.Columns.Select(c => c.Name).ToArray(); foreach (var column in columns) { teamsMessageTemplate = teamsMessageTemplate .Replace($"[[$.data.alertContext.SearchResults.Tables[{tableIndex}].Rows[{rowIndex}].{column}]]", row[Array.IndexOf(columns, column)], StringComparison.InvariantCultureIgnoreCase); } } } return(teamsMessageTemplate); }
public CadastroService(AlertContext context) { _context = context; }
public AlertController(AlertContext context) { _context = context; }
public MainPageViewModel() { myContext = new AlertContext(); hostUri = App.Current.Host.Source.AbsoluteUri; this.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(MainPageViewModel_PropertyChanged); level1MenuList = new ObservableCollection <MainMenuItem>() { //new MainMenuItem //{ // Name = "Geographic", // Url = "", // ImageUrl = "Assets/Images/maps.PNG", // MenuLevel = 1, // Children= new ObservableCollection<MainMenuItem> // { // new MainMenuItem { Name = "Participant Map", Url = "/Geographic/Maps", ImageUrl = "Assets/Images/maps.PNG", MenuLevel = 2 } , // new MainMenuItem { Name = "Heat Maps", Url = "/Geographic/HeatMap", ImageUrl = "Assets/Images/heatmap.PNG", MenuLevel = 2 } // } //}, //new MainMenuItem //{ // Name = "File Upload", // Url = "", // ImageUrl = "Assets/Images/fileupload.PNG", // MenuLevel = 1, // Children = new ObservableCollection<MainMenuItem> // { // new MainMenuItem { Name = "Uploaded File Monitor", Url = "/ParticipantMI/UploadedFileMonitor", ImageUrl = "Assets/Images/fileupload.PNG", MenuLevel = 2 } , // new MainMenuItem { Name = "Job Queue Monitor", Url = "/ParticipantMI/JobQueueMonitor", MenuLevel = 2 } , // new MainMenuItem { Name = "Postcode Upload", Url = "/PostCodes/TransferPostCodeFiles", MenuLevel = 2 } , // new MainMenuItem { Name = "File Csv-Xml Converter", Url = "/ParticipantMI/ParticipantCsvToXmlConverter", MenuLevel = 2 } , // } //}, new MainMenuItem { Name = "Reporting", Url = "", ImageUrl = "Assets/Images/report.PNG", MenuLevel = 1, Children = new ObservableCollection <MainMenuItem> { new MainMenuItem { Name = "Ad Hoc Reports", Url = "/Reporting/ReportWizard/ReportWizard", ImageUrl = "Assets/Images/report.PNG", MenuLevel = 2 }, new MainMenuItem { Name = "Report List", Url = "/Reporting/ReportList", ImageUrl = "Assets/Images/report.PNG", MenuLevel = 2 }, } }, //new MainMenuItem { Name = "INES", Url = "", ImageUrl = "Assets/Images/INES.PNG", MenuLevel = 1, // Children = new ObservableCollection<MainMenuItem> // { // new MainMenuItem { Name = "Select Agreement", Url = "/INES/Charts/SelectionPanel", ImageUrl = "Assets/Images/INES.PNG", MenuLevel = 2 } , // new MainMenuItem { Name = "Cost Analysis", Url = "/INES/Charts/AdminCostAnalysis", ImageUrl = "Assets/Images/costanalysis.PNG", MenuLevel = 2 } , // } //}, new MainMenuItem { Name = "About", Url = "/About", ImageUrl = "Assets/Images/about.PNG", MenuLevel = 1 }, new MainMenuItem { Name = "Home", Url = "/Home", ImageUrl = "Assets/Images/home.PNG", MenuLevel = 1 }, //new MainMenuItem //{ // Name = "Timelines", // Url = "", // ImageUrl = "Assets/Images/Timeline.PNG", // MenuLevel = 1, // Children = new ObservableCollection<MainMenuItem> // { // new MainMenuItem { Name = "Claim/Payment Timeline", Url = "/Timeline/Timeline", ImageUrl = "Assets/Images/Timeline.PNG", MenuLevel = 2 } // } //} }; currentUrl = "/Home"; alertItems = new ObservableCollection <Alert>(); TopLevelSelectedCommand = new RelayCommand(cmd => TopLevelSelected(cmd)); AlertOKCommand = new RelayCommand(cmd => AlertOK(cmd)); //alertTimer = new DispatcherTimer(); //alertTimer.Interval = TimeSpan.FromSeconds(30); //alertTimer.Tick += new EventHandler(alertTimer_Tick); //alertTimer.Start(); }
public StudentsController(AlertContext context) { _context = context; }
public CoursesController(AlertContext context) { _context = context; }