public static async Task <IActionResult> GetSamples1(
            [HttpTrigger(AuthorizationLevel.Function, "post", Route = "samples1")] HttpRequest req,
            ILogger log)
        {
            var options = new GetSamplesFunctionOptions("sample 1");
            var result  = await Factory.Create <IGetSamplesFunction, ILogger>(log)
                          .InvokeAsync <HttpRequest, IActionResult>(req, options)
                          .ConfigureAwait(false);

            return(result);
        }
Exemplo n.º 2
0
        public async Task <IActionResult> GetSamples2(
            [HttpTrigger(AuthorizationLevel.Function, "post", Route = "samples2")] HttpRequest req,
            ILogger log)
        {
            this._function.Log = log;

            var options = new GetSamplesFunctionOptions("sample 2");

            var result = await this._function
                         .InvokeAsync <HttpRequest, IActionResult>(req, options)
                         .ConfigureAwait(false);

            return(result);
        }