private async void ConcatenateAsync() { if (m_consumer != null) { if (string.IsNullOrWhiteSpace(InputString1) || string.IsNullOrWhiteSpace(InputString2)) { UpdateStatusAsync("Input strings cannot be empty.", NotifyType.ErrorMessage); } else { // Call the Concatenate method with the input strings arguments. SecureInterfaceConcatenateResult catResult = await m_consumer.ConcatenateAsync(InputString1, InputString2); if (catResult.Status == AllJoynStatus.Ok) { UpdateStatusAsync(string.Format("Concatenation output : \"{0}\".", catResult.OutStr), NotifyType.StatusMessage); } else { UpdateStatusAsync(string.Format("AllJoyn Error : 0x{0:X}.", catResult.Status), NotifyType.ErrorMessage); } } } else { UpdateStatusAsync("Consumer not connected.", NotifyType.ErrorMessage); } }