示例#1
0
        public async Task <HttpResponseMessage> SyncTriggers()
        {
            var tracer = _traceFactory.GetTracer();

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

                return(Request.CreateResponse(HttpStatusCode.OK));
            }
        }
示例#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" }));
            }
        }