Table of Contents

Class AutomationEntryPointAttribute

Namespace
Skyline.DataMiner.Automation
Assembly
SLManagedAutomation.dll

Indicates that a method can be used as an Automation script entry point.

[AttributeUsage(AttributeTargets.Method)]
public class AutomationEntryPointAttribute : Attribute
Inheritance
AutomationEntryPointAttribute
Extension Methods

Examples

Defining a custom entry point:

[AutomationEntryPoint(AutomationEntryPointType.Types.Default)]
public void Default(Engine engine)
{
 engine.GenerateInformation(""Default"");
}

For testing purposes, you can use AutomationEntryPointTest:

[AutomationEntryPoint(AutomationEntryPointType.Types.AutomationEntryPointTest)]
public void AutomationEntryPointTest(Engine engine, string testMessage, List<int> testIntList)
{
	engine.GenerateInformation(""AutomationEntryPointTest: "" + testMessage + "" "" + string.Join("", "", testIntList.ToArray()));
}

Remarks

The entry points must be public, and may be static or non-static.

The method names and parameter names can be chosen at will.

Restrictions:

  • An Automation script using custom entry points can have only one executable action, which must be a C# code block.
  • If, in a C# code block, you have defined multiple entry points, you must make sure they are of different types. Multiple entry points of the same type are not allowed.
  • For reasons of backward compatibility, it is recommended to use the Script class as the entry point class for a script. Although this is no longer strictly required, it is good practice to add a Script class to a C# code block, even if it is empty.

Feature introduced in DataMiner 9.5.12 (RN 18229).

Constructors

AutomationEntryPointAttribute(Types)

Initializes a new instance of the AutomationEntryPointAttribute class.

Properties

Type

Gets the Automation entry point type.