ChatterBox.Server.PushNotificationSender.SendNotification C# (CSharp) Method

SendNotification() public method

public SendNotification ( string payload ) : void
payload string
return void
        public void SendNotification(string payload)
        {
            SendNotification(_channelURI, payload, _notificationType);
        }

Same methods

PushNotificationSender::SendNotification ( string channelURI, string payload, NotificationType type = NotificationType.Raw ) : void

Usage Example

Example #1
0
        private void EnqueueMessage(IMessage message, [CallerMemberName] string method = null)
        {
            var serializedString = ChannelWriteHelper.FormatOutput(message, method);
            var queueItem        = new RegisteredClientMessageQueueItem
            {
                SerializedMessage = serializedString,
                Message           = message,
                Method            = method
            };

            if (ActiveConnection == null)
            {
                _pushNotificationSender?.SendNotification(queueItem.SerializedMessage);
            }

            MessageQueue.Enqueue(queueItem);
        }
All Usage Examples Of ChatterBox.Server.PushNotificationSender::SendNotification