Table of Contents

Method GetUserConnection

Namespace
Skyline.DataMiner.Scripting
Assembly
SLManagedScripting.dll

GetUserConnection()

Retrieves the user connection. Available from DataMiner 10.0.10 onwards.

IConnection GetUserConnection()

Returns

IConnection

Returns a connection that impersonates the user who triggered the QAction based on SLProtocol#UserCookie. If no user cookie is present within the QAction context, the returned IConnection will act as the SLManagedScripting connection.

Examples

using(var logHelper = LogHelper.Create(protocol.GetUserConnection()))
{
	...
}