Пример #1
0
        public static async Task <IActionResult> Run(
            [HttpTrigger(AuthorizationLevel.Anonymous, "get", Route = null)] HttpRequest req,
            [Table(nameof(SomeEntity), SomeEntity.PARTITION_KEY, Connection = "scs")] CloudTable table,
            ILogger log)
        {
            // The instance of CloudTable in this case has a reference to the entities in the specified partition of the table.
            var result = await TableStorageHelper.GetEntitiesFromTable <SomeEntity>(table);

            return(new OkObjectResult(result));
        }