EndpointExtensions class

namespace: Serenity.Services   assemblySerenity.Net.Web

Contains some extensions for service endpoints

public static class EndpointExtensions

Public Members

name description
static ConvertToResponse<TResponse>(…) Converts the exception object to a service response (2 methods)
static ExecuteMethod<TResponse>(…) Executes an action method and converts any exception to a service response
static InTransaction<TResponse>(…) Executes a callback by passing a unit of work object and converts any exception raised inside to a service response.
static UseConnection<TResponse>(…) Executes a callback by passing a connection object and converts any exception raised inside to a service response.

See Also