コード例 #1
0
ファイル: Function.cs プロジェクト: sn0wtorch/reprofunction
        public async Task <IActionResult> Run(
            [HttpTrigger(AuthorizationLevel.Anonymous, "get", "post", Route = null)] HttpRequest req,
            ILogger log)
        {
            log.LogInformation("C# HTTP trigger function processed a request.");
            _loader.BindLogger(log);

            try
            {
                var instance = await _loader.LoadAsync("https://functionreprostorage.blob.core.windows.net/blobs/Repro.DLL.dll");

                return(new OkObjectResult(""));
            }
            catch (Exception e)
            {
                return(new ContentResult()
                {
                    Content = e.Message, StatusCode = 500
                });
            }
        }