Akka.Interfaced.AkkaReceiverNotificationChannel.Notify C# (CSharp) Method

Notify() public method

public Notify ( NotificationMessage notificationMessage ) : void
notificationMessage NotificationMessage
return void
        public void Notify(NotificationMessage notificationMessage)
        {
            var notificationId = ++_lastNotificationId;
            if (notificationId <= 0)
                notificationId = _lastNotificationId = 1;

            notificationMessage.NotificationId = notificationId;

            var sender = ActorCell.GetCurrentSelfOrNoSender();
            Receiver.Tell(notificationMessage, sender);
        }