コード例 #1
0
        public async Task <HttpResponseMessage> GetSecrets(string name)
        {
            var tracer = _traceFactory.GetTracer();

            using (tracer.Step($"FunctionsController.GetSecrets({name})"))
            {
                return(Request.CreateResponse(HttpStatusCode.OK, await _manager.GetFunctionSecretsAsync(name)));
            }
        }
コード例 #2
0
ファイル: FunctionController.cs プロジェクト: samtoubia/kudu
        public async Task <HttpResponseMessage> GetSecrets(string name)
        {
            // "name".json will be created as function keys, (runtime will always have lowercase "name")
            // kudu REST api does not care, "name" can be camelcase (ex: function portal)
            // windows file system is case insensitive, but this might not work in linux
            var tracer = _traceFactory.GetTracer();

            using (tracer.Step($"FunctionsController.GetSecrets({name})"))
            {
                return(Request.CreateResponse(HttpStatusCode.OK, await _manager.GetFunctionSecretsAsync(name)));
            }
        }