C# Class FeedbackEngine_WebJobs.Messages

Show file Open project: christopheranderson/feedbackengine

Public Methods

Method Description
ProcessSlackMessage ( [ m, Microsoft.Azure.WebJobs.Host.TraceWriter trace ) : System.Threading.Tasks.Task

Grabs messages from the "SlackMessage" Queue and posts them to the Slack Webhook specified in App Settings under "SLACK_CustomerNotificationsHook"

Private Methods

Method Description
SendJSONtoURL ( Newtonsoft.Json.Linq.JObject json, string url, Microsoft.Azure.WebJobs.Host.TraceWriter trace ) : Task
SendSlackMessage ( Message m, Microsoft.Azure.WebJobs.Host.TraceWriter trace ) : System.Threading.Tasks.Task

Method Details

ProcessSlackMessage() public method

Grabs messages from the "SlackMessage" Queue and posts them to the Slack Webhook specified in App Settings under "SLACK_CustomerNotificationsHook"
public ProcessSlackMessage ( [ m, Microsoft.Azure.WebJobs.Host.TraceWriter trace ) : System.Threading.Tasks.Task
m [ Message from the Queue to be posted to Slack
trace Microsoft.Azure.WebJobs.Host.TraceWriter This is used to log from the application to the Azure WebJobs Dashboard
return System.Threading.Tasks.Task