Health and Fitness Sample - what's new

In my previous post I announced that we've improved the Health & Fitness sample in our newly released HealthVault SDK. here is a bit more detail about what we changed:

· Important cache code fix. There was a bug in the previous caching code that emptied the user-data cache for each page load. This is now fixes, and the user data cache is maintained for the duration of the users session.

· Improved security checks for browser download of user charts. Code has been added to verify that if the application is running in HTTPS (as production applications do) that image download can only happen over HTTP.

·  Diagnostic control added to all application pages. A Web.Config setting allows for the showing of a diagnostic control at the bottom of application pages; making it easier to understand the performance characteristics of the data cache and graph cache.

· Better sample code organization. Files are now better arranged into subdirectories for improved comprehension. Functionality is now in the following sub-directories:

App_Code\App_HealthAndFitness\

App_Code\CommonUnits

App_Code\DataCache

App_Code\DataCache_Singletons

App_Code\DataCacheBase

App_Code\Diagnostics

App_Code\DynamicImageManagement

App_Code\GraphEngine1

App_Code\GraphEngine2

App_Code\GraphRequests

App_Code\HealthServerHelpers

App_Code\HelperMachines

App_Code\ThingExtensions

App_Code\ThingTypes

App_Code\ThingTypesInServer

App_Code