healthvault-samples/dotNET/hvclientsample
David Woods a4f639c0d1 Formatting Pass
- Ran CoreFX CodeFormatter on solutions
- Ran Visual Studio's Format Document on solution files
- Manual smoke check to correct anomalies

#55403
2017-05-23 11:52:43 -07:00
..
Properties Formatting Pass 2017-05-23 11:52:43 -07:00
HVClient.cs Formatting Pass 2017-05-23 11:52:43 -07:00
HVClientSample.csproj Merged changes for HealthVault S61. Ported hvclientsample to Git 2017-03-13 10:12:32 -07:00
HVClientSample.sln Merged changes for HealthVault S61. Ported hvclientsample to Git 2017-03-13 10:12:32 -07:00
MainForm.Designer.cs Formatting Pass 2017-05-23 11:52:43 -07:00
MainForm.cs Formatting Pass 2017-05-23 11:52:43 -07:00
MainForm.resx Merged changes for HealthVault S61. Ported hvclientsample to Git 2017-03-13 10:12:32 -07:00
Program.cs Formatting Pass 2017-05-23 11:52:43 -07:00
Readme.md Merged changes for HealthVault S61. Ported hvclientsample to Git 2017-03-13 10:12:32 -07:00
app.config Formatting Pass 2017-05-23 11:52:43 -07:00
packages.config Merged changes for HealthVault S61. Ported hvclientsample to Git 2017-03-13 10:12:32 -07:00

Readme.md

HealthVault Client Application Sample

This sample application demonstrates creating a client application that works with HealthVault.

It demonstrates the following functionality

  • How to setup/provision an application using the SODA authentication pattern.
  • How to make a connection to HealthVault and get/set data.

Details of the sample:

Files

HVClient.cs: This is of most interest as it contains the majority of the code to setup the application and retrieve data.

MainForm.cs: Code for the form that does user interface. This calls into HVClient to do most of the application setup and retrieval.

Program.cs: Default Visual Studio generated code to launch application

HVClient

The public methods such as ProvisionApplication(), DeProvision(), GetWeightFromHealthVault() and SetWeightOnHealthVault().

ProvisionApplication illustrates application setup steps. An application would provision itself on first use or at setup time. Once the application is provisioned, subsequent connections to HealthVault need only the creation of SDK objects for HealthClientApplication and HealthClientAuthorizedConnection.

DeProvision illustrates how an application can clean up if removed from the user's machine. It deauthorizes the application from HealthVault. It also deletes the local certificate that is used for making a client connection to HealthVault.

GetWeightFromHealthVault() and SetWeightOnHealthVault(): These methods show how a HealthClientAuthorizedConnection can be created and used for working with items on HealthVault.