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
44 lines (39 loc) · 1.26 KB
/
IServiceController.cs
File metadata and controls
44 lines (39 loc) · 1.26 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
42
43
44
using System;
using System.Collections.Generic;
using ServiceStack.Messaging;
namespace ServiceStack.ServiceHost
{
/// <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>
/// <param name="httpMethod"></param>
/// <param name="pathInfo"></param>
/// <returns></returns>
IRestPath GetRestPathForRequest(string httpMethod, string pathInfo);
/// <summary>
/// Allow the registration of custom routes
/// </summary>
IServiceRoutes Routes { get; }
/// <summary>
/// Executes the MQ DTO request.
/// </summary>
object ExecuteMessage<T>(IMessage<T> mqMessage);
/// <summary>
/// Executes the MQ DTO request with the supplied requestContext
/// </summary>
object ExecuteMessage<T>(IMessage<T> dto, IRequestContext requestContext);
/// <summary>
/// Executes the DTO request under the supplied requestContext.
/// </summary>
/// <param name="request"></param>
/// <param name="requestContext"></param>
/// <returns></returns>
object Execute(object request, IRequestContext requestContext);
}
}