Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ protected override async Task OnInitAsync()

if (InPrerenderSession is false)
{
disposable = PubSubService.Subscribe(SharedAppMessages.BACKGROUND_JOB_PROGRESS, async payload =>
disposable = PubSubService.Subscribe(ClientAppMessages.BACKGROUND_JOB_PROGRESS, async payload =>
{
if (payload is null) return;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Boilerplate.Client.Core.Services;
public partial class ClientAppMessages
//#if (signalR == true)
: SharedAppMessages
//#endif
//#endif
{
/// <summary>
/// A publisher that publishes this message wants a snack bar to be shown.
Expand Down Expand Up @@ -73,6 +73,11 @@ public partial class ClientAppMessages
/// When the user profile is updated, this message is published.
/// </summary>
public const string PROFILE_UPDATED = nameof(PROFILE_UPDATED);

/// <summary>
/// This would let the client know about the progress of a job (Typically a long-running hangfire background job).
/// </summary>
public const string BACKGROUND_JOB_PROGRESS = nameof(BACKGROUND_JOB_PROGRESS);
//#endif

//#if(module == "Sales")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,9 @@ await pushNotificationService.RequestPush(new()
Message = dto.Message,
PageUrl = dto.PageUrl,
UserRelatedPush = true,
//#if (signalR == true)
RequesterUserSessionId = User.GetSessionId()
//#endif
}, customSubscriptionFilter: s => s.UserSession!.User!.Roles.Any(r => r.RoleId == dto.RoleId),
cancellationToken: cancellationToken);
//#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public partial class SharedAppMessages
public const string MESSAGE_RPOCESS_SUCCESS = nameof(MESSAGE_RPOCESS_SUCCESS);

/// <summary>
/// This would let the client know about the progress of a hangfire background job.
/// This would let the client know about the progress of a job (Typically a long-running hangfire background job).
/// </summary>
public const string BACKGROUND_JOB_PROGRESS = nameof(BACKGROUND_JOB_PROGRESS);
}
Loading