Table of Contents

Method GetUserConnection

Namespace
Skyline.DataMiner.Automation
Assembly
SLManagedAutomation.dll

GetUserConnection()

Retrieves a connection representing the user that executed the Automation script.

public IConnection GetUserConnection()

Returns

IConnection

A connection representing the user that executed the Automation script

Examples

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

Remarks

In case of an interactive Automation script, the connection represents the user that is interacting with the interactive script. If the script was triggered by DataMiner instead of a user, the connection represents the built-in ManagedAutomation user.

Feature introduced in DataMiner 10.0.10 (RN 26434).