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 CHBaseClient(
                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 static IServiceInfo CreateServiceInfo(Instance instance)
 {
     var serviceInfoProxy = new ServiceInfoProxy();
     serviceInfoProxy.ServiceUrl = instance.PlatformUrl;
     serviceInfoProxy.ShellUrl = instance.ShellUrl;
     return serviceInfoProxy;
 }
 public static IServiceInfo CreateServiceInfo(string serviceUrl, string shellUrl)
 {
     var serviceInfoProxy = new ServiceInfoProxy();
     serviceInfoProxy.ServiceUrl = serviceUrl;
     serviceInfoProxy.ShellUrl = shellUrl;
     return serviceInfoProxy;
 }
示例#4
0
        private void UpdateServiceInfo(ServiceInfo serviceInfo)
        {
            // Setting ServiceInfo updates m_client.ServiceInfo too
            ServiceInfo = new ServiceInfoProxy()
            {
                ServiceUrl = serviceInfo.ServiceUrl,
                ShellUrl   = serviceInfo.ShellUrl
            };

            m_appSettings.ServiceUrl = ServiceInfo.ServiceUrl;
            m_appSettings.ShellUrl   = ServiceInfo.ShellUrl;
        }
示例#5
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);
        }
        private void UpdateServiceInfo(ServiceInfo serviceInfo)
        {
            // Setting ServiceInfo updates m_client.ServiceInfo too
            ServiceInfo = new ServiceInfoProxy()
            {
                ServiceUrl = serviceInfo.ServiceUrl,
                ShellUrl = serviceInfo.ShellUrl
            };

            m_appSettings.ServiceUrl = ServiceInfo.ServiceUrl;
            m_appSettings.ShellUrl = ServiceInfo.ShellUrl;
        }