-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add Sent list, Read Rate column, and Clone button (#5)
- Loading branch information
1 parent
bb234b2
commit 72ed4b8
Showing
43 changed files
with
594 additions
and
277 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
src/VirtoCommerce.PushMessages.Core/BackgroundJobs/IRecurringJobService.cs
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
src/VirtoCommerce.PushMessages.Core/BackgroundJobs/RecurringJobDescriptor.cs
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
src/VirtoCommerce.PushMessages.Core/Extensions/ApplicationBuilderExtensions.cs
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
src/VirtoCommerce.PushMessages.Core/Extensions/ServiceCollectionExtensions.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
78 changes: 0 additions & 78 deletions
78
src/VirtoCommerce.PushMessages.Data/BackgroundJobs/RecurringJobService.cs
This file was deleted.
Oops, something went wrong.
32 changes: 32 additions & 0 deletions
32
src/VirtoCommerce.PushMessages.Data/Extensions/ApplicationBuilderExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using Hangfire; | ||
using Microsoft.AspNetCore.Builder; | ||
using Microsoft.Extensions.DependencyInjection; | ||
using VirtoCommerce.Platform.Hangfire; | ||
using VirtoCommerce.PushMessages.Data.BackgroundJobs; | ||
using JobSettings = VirtoCommerce.PushMessages.Core.ModuleConstants.Settings.BackgroundJobs; | ||
|
||
namespace VirtoCommerce.PushMessages.Data.Extensions; | ||
|
||
public static class ApplicationBuilderExtensions | ||
{ | ||
public static IApplicationBuilder UsePushMessageJobs(this IApplicationBuilder appBuilder) | ||
{ | ||
var recurringJobService = appBuilder.ApplicationServices.GetService<IRecurringJobService>(); | ||
|
||
recurringJobService.WatchJobSetting( | ||
new SettingCronJobBuilder() | ||
.SetEnablerSetting(JobSettings.SendScheduledMessagesRecurringJobEnable) | ||
.SetCronSetting(JobSettings.SendScheduledMessagesRecurringJobCronExpression) | ||
.ToJob<PushMessageJobService>(x => x.SendScheduledMessagesRecurringJob(JobCancellationToken.Null)) | ||
.Build()); | ||
|
||
recurringJobService.WatchJobSetting( | ||
new SettingCronJobBuilder() | ||
.SetEnablerSetting(JobSettings.TrackNewRecipientsRecurringJobEnable) | ||
.SetCronSetting(JobSettings.TrackNewRecipientsRecurringJobCronExpression) | ||
.ToJob<PushMessageJobService>(x => x.TrackNewRecipientsRecurringJob(JobCancellationToken.Null)) | ||
.Build()); | ||
|
||
return appBuilder; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.