xf 9 tháng trước cách đây
mục cha
commit
2556eb02a0
1 tập tin đã thay đổi với 10 bổ sung10 xóa
  1. 10 10
      src/Hotline.Api/StartupHelper.cs

+ 10 - 10
src/Hotline.Api/StartupHelper.cs

@@ -262,16 +262,16 @@ namespace Hotline.Api
 
                 switch (callCenterConfiguration.CallCenterType)
                 {
-                    //case "XingTang":
-                    //    var getCallsJobKey = new JobKey(nameof(GetCallsJob));
-                    //    d.AddJob<GetCallsJob>(getCallsJobKey);
-                    //    d.AddTrigger(d => d
-                    //        .WithIdentity("get-callsxt-trigger")
-                    //        .ForJob(getCallsJobKey)
-                    //        .StartNow()
-                    //        .WithCronSchedule("0/5 * * * * ?")
-                    //    );
-                    //    break;
+                    case "XingTang":
+                        var getCallsJobKey = new JobKey(nameof(GetCallsJob));
+                        d.AddJob<GetCallsJob>(getCallsJobKey);
+                        d.AddTrigger(d => d
+                            .WithIdentity("get-callsxt-trigger")
+                            .ForJob(getCallsJobKey)
+                            .StartNow()
+                            .WithCronSchedule("0/5 * * * * ?")
+                        );
+                        break;
                 }
             });