Click or drag to resize

IOperationServiceOpenPersonalSession Method

Opens personal session for the specified or defined by the credentials user using the specified role.

Namespace:  Resto.Front.Api
Assembly:  Resto.Front.Api.V9 (in Resto.Front.Api.V9.dll)
Syntax
C#
bool OpenPersonalSession(
	ICredentials credentials,
	IRole role = null,
	IUser user = null
)

Parameters

credentials
Type: Resto.Front.Api.Data.SecurityICredentials
The credentials returned by AuthenticateByPin(String) method.
role (Optional)
Type: Resto.Front.Api.Data.SecurityIRole
User role for the opening session. Must be null if the restaurant doesn't use roles, otherwise not-null role must be specified. Check UsePersonalRoles to determine, whether the restaurant uses roles or not.
user (Optional)
Type: Resto.Front.Api.Data.SecurityIUser
The user to open personal session for. Leave it null to open personal session for the user defined by the credentials.

Return Value

Type: Boolean
Whether the operation was successful. Note that the method returns true even if personal session had already been opened, regardless of the role.
See Also