@@ -6,7 +6,7 @@ namespace Orleans.DurableJobs;
66/// <summary>
77/// Provides contextual information about a durable job execution.
88/// </summary>
9- public interface IDurableJobRun
9+ public interface IJobRunContext
1010{
1111 /// <summary>
1212 /// Gets the durable job being executed.
@@ -28,7 +28,7 @@ public interface IDurableJobRun
2828/// Represents the execution context for a durable job.
2929/// </summary>
3030[ GenerateSerializer ]
31- internal class DurableJobRun : IDurableJobRun
31+ internal class JobRunContext : IJobRunContext
3232{
3333 /// <summary>
3434 /// Gets the durable job being executed.
@@ -49,12 +49,12 @@ internal class DurableJobRun : IDurableJobRun
4949 public int DequeueCount { get ; }
5050
5151 /// <summary>
52- /// Initializes a new instance of the <see cref="DurableJobRun "/> class.
52+ /// Initializes a new instance of the <see cref="JobRunContext "/> class.
5353 /// </summary>
5454 /// <param name="job">The durable job to execute.</param>
5555 /// <param name="runId">The unique identifier for this execution run.</param>
5656 /// <param name="retryCount">The number of times this job has been dequeued, including retries.</param>
57- public DurableJobRun ( DurableJob job , string runId , int retryCount )
57+ public JobRunContext ( DurableJob job , string runId , int retryCount )
5858 {
5959 Job = job ;
6060 RunId = runId ;
@@ -76,7 +76,7 @@ public DurableJobRun(DurableJob job, string runId, int retryCount)
7676/// <code>
7777/// public class MyGrain : Grain, IDurableJobHandler
7878/// {
79- /// public Task ExecuteJobAsync(IDurableJobRun context, CancellationToken cancellationToken)
79+ /// public Task ExecuteJobAsync(IJobRunContext context, CancellationToken cancellationToken)
8080/// {
8181/// // Process the durable job
8282/// var jobName = context.Job.Name;
@@ -106,8 +106,8 @@ public interface IDurableJobHandler
106106 /// </para>
107107 /// <para>
108108 /// If the method throws an exception and a retry policy is configured, the job may be retried.
109- /// The <see cref="IDurableJobRun .DequeueCount"/> property can be used to determine if this is a retry attempt.
109+ /// The <see cref="IJobRunContext .DequeueCount"/> property can be used to determine if this is a retry attempt.
110110 /// </para>
111111 /// </remarks>
112- Task ExecuteJobAsync ( IDurableJobRun context , CancellationToken cancellationToken ) ;
112+ Task ExecuteJobAsync ( IJobRunContext context , CancellationToken cancellationToken ) ;
113113}
0 commit comments