Esempio n. 1
0
        public async Task <HttpResponseMessage> SyncTriggers()
        {
            var tracer = _traceFactory.GetTracer();

            using (tracer.Step("FunctionController.SyncTriggers"))
            {
                await _manager.SyncTriggersAsync();

                return(Request.CreateResponse(HttpStatusCode.OK));
            }
        }
Esempio n. 2
0
        public async Task <HttpResponseMessage> SyncTriggers()
        {
            var tracer = _traceFactory.GetTracer();

            using (tracer.Step("FunctionController.SyncTriggers"))
            {
                await _manager.SyncTriggersAsync();

                // Return a dummy body to make it valid in ARM template action evaluation
                return(Request.CreateResponse(HttpStatusCode.OK, new { status = "success" }));
            }
        }