namespace: Serenity.Services assembly: Serenity.Net.Web
Contains some extensions for service endpoints
public static class EndpointExtensions
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 ExecuteMethodAsync<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. |
- Source: EndpointExtensions.cs