-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIGreeter.cs
32 lines (29 loc) · 1000 Bytes
/
IGreeter.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Azure.WebJobs;
/// <summary>
/// Interface to a greeter service.
/// </summary>
public interface IGreeter
{
/// <summary>
/// Return back a canned response.
/// </summary>
/// <returns>A 200 OK with a canned message.</returns>
IActionResult ReturnCannedResponse();
/// <summary>
/// Return a greeting to a person named in the request.
/// </summary>
/// <param name="req">The HttpRequest request.</param>
/// <param name="msg">
/// An AzureWebJobsStorage instance for queuing processed messages.
/// </param>
/// <returns>
/// If a non-whitespace name object is specified in the request, a greeting
/// with the person's name will be returned.
///
/// Otherwise, a greeting with the placeholder "Noname" will be returned.
/// </returns>
Task<IActionResult> SayHello(HttpRequest req, ICollector<string> msg);
}