Пример #1
0
 /// <summary>
 /// Send an HL7 message to the configured outbound server
 /// </summary>
 /// <param name="message">HL7 message to send</param>
 public void SendMessage(HL7.V2.Message message)
 {
     Task.Run(() => SendMessageAsync(message));
 }
Пример #2
0
        /// <summary>
        /// Send an HL7 message to the configured outbound server asynchronously
        /// </summary>
        /// <param name="message">HL7 message to send</param>
        public async Task SendMessageAsync(HL7.V2.Message message)
        {
            var update = MessageEvent.Intercept(message);

            await outboundSocket.SendMessage(update).ConfigureAwait(true);
        }