Skip to content

ValidationServiceProvider class

namespace: Serenity.Services   assembly: Serenity.Net.Services

The services of the ValidationContext a validation rule is checked in by a request handler: its own ones first, e.g. the connection in its transaction and the localizer of the request, then the ones of the request, when the request context gives them, see IServiceProviderAccessor.

public class ValidationServiceProvider : IServiceProvider
parameter description
services The services of the handler, by their types.
fallback The services of the request, or null when there are none.

Public Members

name description
ValidationServiceProvider(…) The services of the ValidationContext a validation rule is checked in by a request handler: its own ones first, e.g. the connection in its transaction and the localizer of the request, then the ones of the request, when the request context gives them, see IServiceProviderAccessor.
GetService(…)

See Also