title: Real-time notification upon registration using SignalR
body: <p>I want to send real-time notification in ASP.NET Boilerplate. Notification is saving successfully in <strong>Abp.NotificationSubscription</strong> table on subscription. When I publish the notification, the notification got saved in the <strong>Abp.Notification</strong> table but it is not displayed to the user in real-time.</p>
  
  <p>My server-side code:</p>
  
  <pre><code>public async Task&lt;RegisterOutput&gt; Register(RegisterInput input)
  {
      public async Task&lt;RegisterOutput&gt; Register(RegisterInput input)
      {
        var user = await _userRegistrationManager.RegisterAsync(
            input.Name,
            input.Surname,
            input.EmailAddress,
            input.UserName,
            input.Password,
            true
        );
  
        _notificationSubscriptionManager.SubscribeToAllAvailableNotifications(user.ToUserIdentifier());
        await _appNotifier.WelcomeToTheApplicationAsync(user);
  
        var notification = _userNotificationManager.GetUserNotifications(user.ToUserIdentifier());
        await _realTimeNotifier.SendNotificationsAsync(notification.ToArray());
  
        // ...
      }
  }
  </code></pre>
  
  <p><code>_appNotifier</code> implements <code>WelcomeToTheApplicationAsync(user)</code>:</p>
  
  <pre><code>public async Task WelcomeToTheApplicationAsync(User user)
  {
      await _notificationPublisher.PublishAsync(
          AppNotificationName.WelcomeToTheApplication,
          new SendNotificationData("Naeem", "Hello I have sended this notification to you"),
          severity: NotificationSeverity.Success,
          userIds: new[] { user.ToUserIdentifier() }
      );
  }
  </code></pre>
  
  <p><code>SendNotificationData</code> inherits from <code>NotificationData</code>:</p>
  
  <pre><code>public class SendNotificationData : NotificationData
  {
      public string name { get; set; }
      public string message { get; set; }
  
      public SendNotificationData(string _name, string _message)
      {
          name = _name;
          message = _message;
      }
  }
  </code></pre>