Example #1
0
        public HealthVaultApp(HealthVaultAppSettings appSettings)
        {
            m_lock = new object();

            m_appSettings = appSettings;
            m_serviceInfo = new ServiceInfoProxy()
            {
                ShellUrl   = appSettings.ShellUrl,
                ServiceUrl = appSettings.ServiceUrl
            };
            m_startupStatus = AppStartupStatus.Cancelled;
            m_appInfo       = new AppInfoProxy(appSettings.MasterAppId, appSettings.IsMultiInstanceAware);

            m_client = new HealthVaultClient(
                m_appInfo,
                m_serviceInfo,
                appSettings.IsFirstParty,
                appSettings.WebAuthorizer != null ? (IWebAuthorizer)appSettings.WebAuthorizer : null);

            if (appSettings.IsFirstParty)
            {
                m_liveIdHostName        = appSettings.LiveIdHostName;
                m_client.LiveIdHostName = appSettings.LiveIdHostName;
            }

            m_localVault = new LocalVault(this, appSettings.Folder, appSettings.Folder);
            m_vocabs     = new Vocabs(this);

            UIThreadDispatcher.Current.Init();
        }
 public BeginPutBlob(HealthVaultClient client, RecordReference record)
     : base(client)
 {
     if (record == null)
     {
         throw new ArgumentNullException("record");
     }
     m_record = record;
 }
Example #3
0
        public ServiceMethods(HealthVaultClient client)
        {
            if (client == null)
            {
                throw new ArgumentNullException("client");
            }

            m_client = client;
        }
        public Shell(HealthVaultClient client)
        {
            if (client == null)
            {
                throw new ArgumentNullException("client");
            }

            TargetPage = "redirect.aspx";
            AuthCompletePage = "application/complete";

            m_client = client;
        }
Example #5
0
        internal void SetClient(HealthVaultClient client)
        {
            if (m_records == null)
            {
                return;
            }

            foreach (RecordImpl record in m_records)
            {
                record.Client = client;
            }
        }
Example #6
0
        public Shell(HealthVaultClient client)
        {
            if (client == null)
            {
                throw new ArgumentNullException("client");
            }

            TargetPage       = "redirect.aspx";
            AuthCompletePage = "application/complete";

            m_client = client;
        }
Example #7
0
        public GetVocabulary(HealthVaultClient client, RequestBody body, Type responseType)
            : base(client)
        {
            if (body == null)
            {
                throw new ArgumentNullException("body");
            }
            if (responseType == null)
            {
                throw new ArgumentNullException("responseType");
            }

            m_body = body;
            m_responseType = responseType;
        }
        public RemoveThings(HealthVaultClient client, RecordReference record, RequestBody body)
            : base(client)
        {
            if (record == null)
            {
                throw new ArgumentNullException("record");
            }
            if (body == null)
            {
                throw new ArgumentNullException("body");
            }

            m_record = record;
            m_body = body;
        }
Example #9
0
        public HealthVaultApp(HealthVaultAppSettings appSettings)
        {
            m_lock = new object();

            m_appSettings = appSettings;
            m_serviceInfo = new ServiceInfoProxy()
            {
                ShellUrl = appSettings.ShellUrl,
                ServiceUrl = appSettings.ServiceUrl
            };
            m_startupStatus = AppStartupStatus.Cancelled;
            m_appInfo = new AppInfoProxy(appSettings.MasterAppId);

            m_client = new HealthVaultClient(m_appInfo, m_serviceInfo, m_appSettings.UseWebAuthBroker);
            m_localVault = new LocalVault(this, appSettings.Folder, appSettings.Folder);
            m_vocabs = new Vocabs(this);
        }
        // We can't pass in a HealthVaultClient directly because it's not a WinRT class. :(
        public ServiceMethodProvider(HealthVaultAppSettings appSettings)
        {
            ServiceInfo serviceInfo = (ServiceInfo)ServiceFactory.CreateServiceInfo(
                "https://platform.healthvault-ppe.com/platform/wildcat.ashx",
                "https://account.healthvault-ppe.com");

            AppInfo appInfo = new AppInfo();
            appInfo.MasterAppId = Guid.Parse(appSettings.MasterAppId);
            appInfo.IsMultiInstanceAware = true;

            HealthVaultClient client = new HealthVaultClient(
                appInfo,
                serviceInfo,
                appSettings.IsFirstParty,
                appSettings.WebAuthorizer != null ? (IWebAuthorizer)appSettings.WebAuthorizer : null);

            m_serviceMethods = client.ServiceMethods;
        }
 public PutThings(HealthVaultClient client, RecordReference record, RequestBody body, Type responseType)
     : base(client)
 {
     if (record == null)
     {
         throw new ArgumentNullException("record");
     }
     if (body == null)
     {
         throw new ArgumentNullException("body");
     }
     if (responseType == null)
     {
         throw new ArgumentNullException("responseType");
     }
     m_record = record;
     m_body = body;
     m_responseType = responseType;
 }
        internal void SetClient(HealthVaultClient client)
        {
            if (m_records == null)
            {
                return;
            }

            foreach (RecordImpl record in m_records)
            {
                record.Client = client;
            }
        }
 public PutThings(HealthVaultClient client, string personID, string recordID, RequestBody body, Type responseType)
     : this(client, new RecordReference(personID, recordID), body, responseType)
 {
 }
 public BeginPutBlob(HealthVaultClient client, string personID, string recordID)
     : this(client, new RecordReference(personID, recordID))
 {
 }
 public RemoveThings(HealthVaultClient client, string personID, string recordID, RequestBody body)
     : this(client, new RecordReference(personID, recordID), body)
 {
 }