public class Functions | |
{ | |
public static void ProcessQueueMessage([QueueTrigger("queue")] string message, TextWriter log) | |
{ | |
log.WriteLine(message); | |
} | |
public static void CronJob([TimerTrigger("00:01:00")] TimerInfo timer, [Queue("queue")] out string outputQueueMessage) | |
{ | |
outputQueueMessage = new Random().NextDouble().ToString(); | |
} | |
// https://pbjobs.scm.azurewebsites.net/api/continuouswebjobs/WebJob1/passthrough/functions/poke | |
public static void Poke([WebHookTrigger] string body, TraceWriter trace) | |
{ | |
dynamic b = JObject.Parse(body); | |
trace.Info(string.Format("Sender: {0}, Message: {1}", b.sender, b.message)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment