2
using System.Collections.Generic;
4
namespace ServiceStack.ServiceHost
7
/// Responsible for executing the operation within the specified context.
9
/// <value>The operation types.</value>
10
public interface IServiceController
13
/// Returns a list of operation types available in this service
15
/// <value>The operation types.</value>
16
IList<Type> OperationTypes { get; }
19
/// Returns a list of ALL operation types available in this service
21
/// <value>The operation types.</value>
22
IList<Type> AllOperationTypes { get; }
25
/// Returns the first matching RestPath
27
/// <param name="httpMethod"></param>
28
/// <param name="pathInfo"></param>
29
/// <returns></returns>
30
IRestPath GetRestPathForRequest(string httpMethod, string pathInfo);
33
/// Allow the registration of custom routes
35
IServiceRoutes Routes { get; }
38
/// Executes the DTO request under the supplied requestContext.
40
/// <param name="request"></param>
41
/// <param name="requestContext"></param>
42
/// <returns></returns>
43
object Execute(object request, IRequestContext requestContext);
b'\\ No newline at end of file'