コード例 #1
0
        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());
 }