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.V10 (in Resto.Front.Api.V10.dll)
Syntax
C#
bool OpenPersonalSession(
	ICredentials credentials,
	IRole role = null,
	IUser user = null
)

Parameters

credentials  ICredentials
The credentials returned by AuthenticateByPin(String) method.
role  IRole  (Optional)
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  IUser  (Optional)
The user to open personal session for. Leave it null to open personal session for the user defined by the credentials.

Return Value

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