Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
IeuanWalker committed Dec 7, 2023
1 parent bba0f11 commit 47d0d20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/IeuanWalker/Hangfire.RecurringJob.Generator</RepositoryUrl>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
<Version>1.0.2</Version>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,10 @@ static void Generate(SourceProductionContext context, ImmutableArray<List<JobMod
// <auto-generated/>
using Hangfire;
using Microsoft.Extensions.DependencyInjection;
public static class RecurringJobRegistrationExtensions
{
public static IServiceCollection RegisterRecurringJobsFrom").Append(assemblyName?.Sanitize(string.Empty) ?? "Assembly").Append(@"(this IServiceCollection sc)
public static IApplicationBuilder RegisterRecurringJobsFrom").Append(assemblyName?.Sanitize(string.Empty) ?? "Assembly").Append(@"(this IApplicationBuilder app)
{
");
foreach (JobModel job in jobsToAdd.OrderBy(r => r.FullClassName))
Expand All @@ -114,7 +113,7 @@ public static class RecurringJobRegistrationExtensions
.Append("\t\t});\r\n");
}
sb.Append(@"
return sc;
return app;
}
}");

Expand Down

0 comments on commit 47d0d20

Please sign in to comment.