Esempio n. 1
0
        public static async Task <IActionResult> Run(
            [HttpTrigger(AuthorizationLevel.Function, "get", "post", Route = null)] HttpRequest req,
            [Table("BasicInformation")] CloudTable cloudTable,
            ILogger log)
        {
            log.LogInformation("C# HTTP trigger function processed a request.");

            return((ActionResult) new OkObjectResult(await AzureStorageHelper.GetBasicInfoAsync(cloudTable)));
        }
Esempio n. 2
0
        private async void Grid_Loaded(object sender, RoutedEventArgs e)
        {
            var data = await AzureStorageHelper.GetBasicInfoAsync();

            this.NameTbx.Text        = data.Name;
            this.LocTbx.Text         = data.Location;
            this.DescriptionTbx.Text = data.Description;
            this.ImgBox.Text         = data.Image;
            this.StaTbx.Text         = data.StationCode ?? "";
        }