Beispiel #1
0
 public static HttpResponseMessage Run([HttpTrigger(AuthorizationLevel.Function, "get", Route = null)] HttpRequestMessage request,
                                       ILogger log, [Inject] IAnnouncer announcer)
 {
     log.LogInformation("C# HTTP trigger function processed a request.");
     return(new HttpResponseMessage(HttpStatusCode.OK)
     {
         Content = new StringContent($"Base Directory is: {announcer.Announce()}")
     });
 }
        private void Listener_OnMessageReceive(IMessage message)
        {
            var messageSendSettings = new MessageSettingsOut(settings.SendTo);

            announcer.Announce(message, messageSendSettings);
        }