Example #1
0
        public FHIRDeviceSession(FHIRDevice device, ServerProcess serverProcess, Schema.DeviceSessionInfo deviceSessionInfo) : base(device, serverProcess, deviceSessionInfo)
        {
            // Initialize the FHIR Client
            _client = new FhirClient(device.Endpoint);
            _client.PreferredFormat = ResourceFormat.Json;

            // TODO: Establish authentication/authorization tokens?
        }
 protected internal FastoreDeviceSession
 (
     Schema.Device device,
     ServerProcess serverProcess,
     Schema.DeviceSessionInfo deviceSessionInfo,
     Database db
 )
     : base(device, serverProcess, deviceSessionInfo)
 {
     _db = db;
 }
Example #3
0
 protected override Schema.DeviceSession InternalConnect(ServerProcess serverProcess, Schema.DeviceSessionInfo deviceSessionInfo)
 {
     return(new FHIRDeviceSession(this, serverProcess, deviceSessionInfo));
 }
Example #4
0
        public PHINVADSDeviceSession(PHINVADSDevice device, ServerProcess serverProcess, Schema.DeviceSessionInfo deviceSessionInfo) : base(device, serverProcess, deviceSessionInfo)
        {
            // Initialize the PHINVADS Client
            _factory = new CHessianProxyFactory();
            _client  = (VocabService)_factory.Create(typeof(VocabService), device.Endpoint);

            // TODO: Establish authentication/authorization tokens?
        }