Skip to content

Commit

Permalink
Make GetMatcherWhereClause static and move IGroupedElement
Browse files Browse the repository at this point in the history
The method GetMatcherWhereClause in RavenJobStore.Utils has been made static. Furthermore, the IGroupedElement interface has been moved from Job.cs to its own file to improve code organization and readability.
  • Loading branch information
JezhikLaas committed Dec 20, 2023
1 parent ab88e1d commit 5a0dd94
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 6 additions & 0 deletions Quartz.Impl.RavenJobStore/Entities/IGroupedElement.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace Domla.Quartz.Raven.Entities;

internal interface IGroupedElement
{
string Group { get; }
}
5 changes: 0 additions & 5 deletions Quartz.Impl.RavenJobStore/Entities/Job.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,6 @@ public IJobDetail? Item
}
}

internal interface IGroupedElement
{
string Group { get; set; }
}

internal static class JobKeyExtensions
{
public static string GetDatabaseId(this JobKey? jobKey, string schedulerName) =>
Expand Down
2 changes: 1 addition & 1 deletion Quartz.Impl.RavenJobStore/RavenJobStore.Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ select trigger
result.ForEach(x => buffer.Enqueue(x, -x.Priority));
}

private (bool clientMatch, IRavenQueryable<T>) GetMatcherWhereClause<T, TKey>(
private static (bool clientMatch, IRavenQueryable<T>) GetMatcherWhereClause<T, TKey>(
IRavenQueryable<T> source,
GroupMatcher<TKey> matcher) where T : IGroupedElement where TKey : Key<TKey>
{
Expand Down

0 comments on commit 5a0dd94

Please sign in to comment.