Click or drag to resize

IOperationServiceRegisterAgeVerifier Method

Registers one age verification method. Dispose unregisters it; plugin unload also removes the registration. Exceptions are logged and treated as verification unavailable.

Namespace: Resto.Front.Api
Assembly: Resto.Front.Api.V10 (in Resto.Front.Api.V10.dll)
Syntax
C#
IDisposable RegisterAgeVerifier(
	AgeVerifierCapability capability,
	Func<AgeVerificationRequest, AgeVerificationResponse> verify
)

Parameters

capability  AgeVerifierCapability
Capabilities of one verification method, copied at registration.
verify  FuncAgeVerificationRequest, AgeVerificationResponse
Background callback. Null means not my code; an empty result means verification failed. Late replies after dialog closure are ignored.

Return Value

IDisposable
See Also