2017-09-15 1 views
0
static void Main() 
{ 
var config = new JobHostConfiguration(); 
config.UseTimers(); 
var host = new JobHost(config); 
host.RunAndBlock(); 
} 

public static void TimerTrig1([TimerTrigger("00:00:02")] TimerInfo timer) 
{ 
    Console.WriteLine("Triggered"); 
} 

public static void TimerTrig2([TimerTrigger("00:00:04")] TimerInfo timer) 
{ 
    Console.WriteLine("Triggered"); 
} 

에 트리거되지 않습니다. 그러나 아직도 주목했다. 내 메소드가 트리거되지 않습니다.시간 트리거 방법은 내가 푸른에 그 코드를 발표했지만 그것은 나를 <a href="https://i.stack.imgur.com/RPLcj.png" rel="nofollow noreferrer">Click for Error</a> 에러하지만 난 푸른 포털 <a href="https://i.stack.imgur.com/w88Z7.png" rel="nofollow noreferrer">Click for Image</a>에 연결 문자열을 설정하여 해결 제공 하늘빛 웹 작업

답변

0
I have published that code on azure but it give me error Click for Error 
that "** System.InvalidOperationException: Failed to validate Microsoft 
Azure WebJobs SDK Dashboard connection string**. " I resolve it by setting 
connection string on Azure portal [enter image description here][1] [Click 
for detail][2]. but still noting happened. My Methods were not triggering 
so after that i Fund out that i have to make my methods public like this 
[enter image description here][3]. And Finally it run. Output [enter image 
description here][4] 
관련 문제