Permalink
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (23 sloc) 1.03 KB
using System;
using System.Threading.Tasks;
using ServiceStack.Messaging;
namespace ServiceStack.Web
{
public interface IServiceRunner
{
object Process(IRequest requestContext, object instance, object request);
}
public interface IServiceRunner<TRequest> : IServiceRunner
{
void OnBeforeExecute(IRequest req, TRequest request);
object OnAfterExecute(IRequest req, object response);
[Obsolete("Implement HandleExceptionAsync")]
object HandleException(IRequest request, TRequest requestDto, Exception ex);
Task<object> HandleExceptionAsync(IRequest request, TRequest requestDto, Exception ex);
[Obsolete("Implement ExecuteAsync")]
object Execute(IRequest req, object instance, TRequest requestDto);
Task<object> ExecuteAsync(IRequest req, object instance, TRequest requestDto);
object Execute(IRequest req, object instance, IMessage<TRequest> request);
object ExecuteOneWay(IRequest requestContext, object instance, TRequest request);
}
}