public static string Run([QueueTrigger("greeting-creation-requests")] CreateGreetingRequest input,
                                 ILogger log,
                                 DateTimeOffset insertionTime,
                                 string id)
        {
            log.LogInformation($"C# Queue trigger function processed: {input}");

            log.LogInformation($"Insertion time: {insertionTime}");
            log.LogInformation($"Id: {id}");

            var greetingRequest = new GreetingRequest
            {
                Number  = input.Number,
                Message = $"Hi {input.FirstName}"
            };

            return(JsonConvert.SerializeObject(greetingRequest));
        }
示例#2
0
 public static string SendSms(GreetingRequest request)
 {
     return(Guid.NewGuid().ToString());
 }