|
@@ -4,24 +4,20 @@ using System.Collections.Generic;
|
|
|
using System.Linq;
|
|
|
using System.Text;
|
|
|
using System.Threading.Tasks;
|
|
|
+using Microsoft.Extensions.Logging;
|
|
|
|
|
|
namespace Hotline.Application.Jobs
|
|
|
{
|
|
|
public class XingTangTelOperationSyncJob : IJob, IDisposable
|
|
|
{
|
|
|
- /// <summary>
|
|
|
- /// Called by the <see cref="T:Quartz.IScheduler" /> when a <see cref="T:Quartz.ITrigger" />
|
|
|
- /// fires that is associated with the <see cref="T:Quartz.IJob" />.
|
|
|
- /// </summary>
|
|
|
- /// <remarks>
|
|
|
- /// The implementation may wish to set a result object on the
|
|
|
- /// JobExecutionContext before this method exits. The result itself
|
|
|
- /// is meaningless to Quartz, but may be informative to
|
|
|
- /// <see cref="T:Quartz.IJobListener" />s or
|
|
|
- /// <see cref="T:Quartz.ITriggerListener" />s that are watching the job's
|
|
|
- /// execution.
|
|
|
- /// </remarks>
|
|
|
- /// <param name="context">The execution context.</param>
|
|
|
+ private readonly ILogger<XingTangTelOperationSyncJob> _logger;
|
|
|
+
|
|
|
+ public XingTangTelOperationSyncJob(
|
|
|
+ ILogger<XingTangTelOperationSyncJob> logger)
|
|
|
+ {
|
|
|
+ _logger = logger;
|
|
|
+ }
|
|
|
+
|
|
|
public async Task Execute(IJobExecutionContext context)
|
|
|
{
|
|
|
throw new NotImplementedException();
|
|
@@ -30,7 +26,7 @@ namespace Hotline.Application.Jobs
|
|
|
/// <summary>Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.</summary>
|
|
|
public void Dispose()
|
|
|
{
|
|
|
- throw new NotImplementedException();
|
|
|
+ _logger.LogInformation($"{nameof(XingTangTelOperationSyncJob)} disposed");
|
|
|
}
|
|
|
}
|
|
|
}
|