Table of Contents

Property ProfileManager

Namespace
Skyline.DataMiner.Automation
Assembly
SLManagedAutomation.dll

ProfileManager

Gets the Profile Manager.

[Obsolete("Please use the ProfileManagerHelper for an up-to-date API")]
public SLProfileManager ProfileManager { get; }

Property Value

SLProfileManager

The Profile Manager.

Examples

var profileManager = engine.ProfileManager;

Remarks

SLProfileManager is now obsolete. Use ProfileManagerHelper for an up-to-date API.

using System;
using Skyline.DataMiner.Automation;
using Skyline.DataMiner.Net.IManager.Helper;
using Skyline.DataMiner.Net.Profiles;
using System.Linq;

public class Script
{
	// We use the ProfileManagerHelper object to communicate with the ProfileManager module.
	ProfileManagerHelper Helper;

	public Script()
	{
		// Initialize the ProfileManagerHelper
		Helper = new ProfileManagerHelper();

		//Handling the RequestResponseEvent gives the ProfileManagerHelper connection with SLNet.
		Helper.RequestResponseEvent += Helper_RequestResponseEvent;
	}

	//Handles the RequestResponseEvent. Any server call the Helper makes behind the scenes calls this method.
	private void Helper_RequestResponseEvent(object sender, IManagerRequestResponseEventArgs e)
	{
		e.responseMessage = Engine.SLNet.SendSingleResponseMessage(e.requestMessage);
	}

	public void Run(Engine engine)
	{
		// ...
	}
}