xf 9 달 전
부모
커밋
2556eb02a0
1개의 변경된 파일10개의 추가작업 그리고 10개의 파일을 삭제
  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;
                 }
             });