예제 #1
0
 private async Task SendNotificationAsync()
 {
     if (tcConsumer.SelectedIndex == 0) //unauthenticated
     {
         await _iNotificationsApi.SendMessageToUnauthenticatedConsumer(NotificationModel());
     }
     else if (tcConsumer.SelectedIndex == 1) //authenticated
     {
         await _iNotificationsApi.SendMessageToAuthenticatedConsumer(_iAuthenticationsApi.Token(), NotificationModel());
     }
 }