ILogOnServiceGetSessionToken Method

Creates a session token for the specified session.

Namespace: Dundas.BI.AccountServices
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (26.2.0.1000)
Syntax
Guid GetSessionToken(
	Guid sessionId,
	TimeSpan lifetime
)

Parameters

sessionId  Guid
The ID of the session for which to create the token.
lifetime  TimeSpan
The amount of time for which the token should be valid.

Return Value

Guid
The GUID representing the session token.
Exceptions
ExceptionCondition
ArgumentExceptionsessionId is Empty.
ArgumentOutOfRangeExceptionlifetime is less than Zero.
NoPrivilegeException

The caller's session does not correspond to sessionId.

-or-

The caller does not have system administration privileges.

InvalidSessionExceptionThe caller context is not associated with a valid session.
See Also