Beispiel #1
0
        // This will transmit the same patient arrival record to all 3 event hubs
        private async Task broadcastSinglePatient(int patientId)
        {
            PatientArrival arrivalRecord = this.generatePatientArrival(patientId);

            string record = arrivalRecord.ToString();

            Console.WriteLine("\n");
            Console.WriteLine("========================================================================");
            Console.WriteLine("Transmitting Patient Record to all event hubs");
            Console.WriteLine(record);

            await sendMessage(this.eventHubClientCA, record);
            await sendMessage(this.eventHubClientFL, record);
            await sendMessage(this.eventHubClientWA, record);
        }