forked from ServiceStack/ServiceStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIServiceController.cs
More file actions
41 lines (35 loc) · 1.23 KB
/
IServiceController.cs
File metadata and controls
41 lines (35 loc) · 1.23 KB
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
33
34
35
36
37
38
39
40
41
using ServiceStack.Messaging;
namespace ServiceStack.Web
{
/// <summary>
/// Responsible for executing the operation within the specified context.
/// </summary>
/// <value>The operation types.</value>
public interface IServiceController
{
/// <summary>
/// Returns the first matching RestPath
/// </summary>
IRestPath GetRestPathForRequest(string httpMethod, string pathInfo);
/// <summary>
/// Executes the MQ DTO request.
/// </summary>
object ExecuteMessage(IMessage mqMessage);
/// <summary>
/// Executes the MQ DTO request with the supplied requestContext
/// </summary>
object ExecuteMessage(IMessage dto, IRequest requestContext);
/// <summary>
/// Executes the DTO request under the supplied requestContext.
/// </summary>
object Execute(object requestDto, IRequest request);
/// <summary>
/// Executes the DTO request with an empty RequestContext.
/// </summary>
object Execute(object requestDto);
/// <summary>
/// Executes the DTO request with the current HttpRequest.
/// </summary>
object Execute(IRequest request);
}
}