Skip to content

Commit

Permalink
Merge remote branch 'origin/HEAD'
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Oct 3, 2012
2 parents dd68210 + 33106ae commit 85352db
Show file tree
Hide file tree
Showing 3 changed files with 402 additions and 395 deletions.
93 changes: 49 additions & 44 deletions src/ServiceStack.Interfaces/ServiceHost/IServiceController.cs
@@ -1,45 +1,50 @@
using System;
using System.Collections.Generic;

namespace ServiceStack.ServiceHost
{
/// <summary>
/// Responsible for executing the operation within the specified context.
/// </summary>
/// <value>The operation types.</value>
public interface IServiceController
{
/// <summary>
/// Returns a list of operation types available in this service
/// </summary>
/// <value>The operation types.</value>
IList<Type> OperationTypes { get; }

/// <summary>
/// Returns a list of ALL operation types available in this service
/// </summary>
/// <value>The operation types.</value>
IList<Type> AllOperationTypes { get; }

/// <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 DTO request under the supplied requestContext.
/// </summary>
/// <param name="request"></param>
/// <param name="requestContext"></param>
/// <returns></returns>
object Execute(object request, IRequestContext requestContext);
}
using System;
using System.Collections.Generic;

namespace ServiceStack.ServiceHost
{
/// <summary>
/// Responsible for executing the operation within the specified context.
/// </summary>
/// <value>The operation types.</value>
public interface IServiceController
{
/// <summary>
/// Returns a list of operation types available in this service
/// </summary>
/// <value>The operation types.</value>
IList<Type> OperationTypes { get; }

/// <summary>
/// Returns a list of ALL operation types available in this service
/// </summary>
/// <value>The operation types.</value>
IList<Type> AllOperationTypes { get; }

/// <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 DTO request with no requestContext.
/// </summary>
object Execute(object dto);

/// <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);
}
}

0 comments on commit 85352db

Please sign in to comment.