Exemplo n.º 1
0
        public ActionResult Generate()
        {
            // Trigger
            AzureWebJobShutdownService.Peek();

            // prepare our default view bag
            PrepareViewBag();

            // render the config
            return(RedirectToAction("Index"));
        }
Exemplo n.º 2
0
        public ActionResult Add(MeterDefinitionServerBased model)
        {
            // instantiate the meter manager
            var meterManagerEx = initializeMeterManager();

            // store the meterdefinition to the settings
            meterManagerEx.CreateOrUpdateServerSideDefinition(model);

            // trigger the webjib
            AzureWebJobShutdownService.Peek();

            // Render the meters
            return(RedirectToAction("Index"));
        }