Difference between revisions of "Embedded Server"
From Hiasobi - FHIR
Brett Esler (Talk | contribs) (Created page with "Hiasobi can be hosted in your application * Restriction: x86 only; restriction due to available database drivers for installed clinical systems * Example instantiation: Def...") |
Brett Esler (Talk | contribs) (→Returned Configuration) |
||
(11 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
Hiasobi can be hosted in your application | Hiasobi can be hosted in your application | ||
+ | * Pass in desired [[Server Configuration]] - returns actual configuration including assigned web server ports on start | ||
+ | * Default configuration is to access samples databases for CIS; no license required | ||
+ | * Delivered as a single DLL "FHIR-SERVER.dll" | ||
− | + | ==Default Samples CIS Access== | |
− | + | ||
− | + | ||
− | + | ||
− | Default Samples CIS Access | + | |
<code> | <code> | ||
// default samples data server | // default samples data server | ||
Line 13: | Line 12: | ||
− | Licensed Live CIS Access | + | ==Licensed Live CIS Access== |
<code> | <code> | ||
// licensed live data server | // licensed live data server | ||
Oridashi.Fhir.Host.FhirHost host = new Oridashi.Fhir.Host.FhirHost(); | Oridashi.Fhir.Host.FhirHost host = new Oridashi.Fhir.Host.FhirHost(); | ||
Oridashi.Fhir.Configuration c = host.Start( | Oridashi.Fhir.Configuration c = host.Start( | ||
− | new Oridashi.Fhir.Configuration() { ProfileName = "company", LicenseKey=" | + | new Oridashi.Fhir.Configuration() { |
− | + | ProfileName = "company", | |
+ | LicenseKey="66E5BB266664C8ECABAF659FDF532", | ||
+ | IsLive = true | ||
+ | } | ||
); | ); | ||
</code> | </code> | ||
+ | |||
+ | ==Returned Configuration== | ||
+ | Configuration object is returned with details of the started service [[Server_Configuration]] |
Latest revision as of 16:44, 26 February 2018
Hiasobi can be hosted in your application
- Pass in desired Server Configuration - returns actual configuration including assigned web server ports on start
- Default configuration is to access samples databases for CIS; no license required
- Delivered as a single DLL "FHIR-SERVER.dll"
Default Samples CIS Access
// default samples data server Oridashi.Fhir.Host.FhirHost host = new Oridashi.Fhir.Host.FhirHost(); Oridashi.Fhir.Configuration c = host.Start();
Licensed Live CIS Access
// licensed live data server Oridashi.Fhir.Host.FhirHost host = new Oridashi.Fhir.Host.FhirHost(); Oridashi.Fhir.Configuration c = host.Start( new Oridashi.Fhir.Configuration() { ProfileName = "company", LicenseKey="66E5BB266664C8ECABAF659FDF532", IsLive = true } );
Returned Configuration
Configuration object is returned with details of the started service Server_Configuration