public static ServicesProperties GetServiceProperties()
        {
            IList <ServiceAccessPolicyEntry> accessPolicies = new List <ServiceAccessPolicyEntry>();

            accessPolicies.Add(new ServiceAccessPolicyEntry(objectId));

            string provisioningState = "Succeeded";

            ServiceCosmosDbConfigurationInfo       cosmosDbConfigurationInfo       = new ServiceCosmosDbConfigurationInfo(offerThroughput, keyVaultKeyUri);
            ServiceAuthenticationConfigurationInfo authenticationConfigurationInfo = new ServiceAuthenticationConfigurationInfo(authority, audience, smartOnFhirEnabled);

            var serviceProperties = new ServicesProperties(provisioningState, accessPolicies, cosmosDbConfigurationInfo, authenticationConfigurationInfo);

            return(serviceProperties);
        }
Пример #2
0
 public PSHealthcareApisFhirServiceAuthenticationConfig(ServiceAuthenticationConfigurationInfo serviceAuthenticationConfigurationInfo)
 {
     this.Authority         = serviceAuthenticationConfigurationInfo.Authority;
     this.Audience          = serviceAuthenticationConfigurationInfo.Audience;
     this.SmartProxyEnabled = serviceAuthenticationConfigurationInfo.SmartProxyEnabled;
 }