Skip to main content

FileSystemTrigger.GetAllFileSystemTriggersAsync

Description

The API gets the list of all the available File System Triggers from the connected Control Room.

Signature [C#]

Task<List<FileSystemTrigger>> GetAllFileSystemTriggersAsync()

Properties

Input

PropertyDescription
Task<List<FileSystemTrigger>>Returns all available filesystem triggers information from the Control Room.

Remarks

Use GetAllFileSystemTriggersAsync API to get the list of all the available filesystem triggers information from the Control Room.

Example

C#
public void GetAllFileSystemTriggers()
{
IControlRoomContext context = LoginControlRoom("RegularBuild", "BasicAuth");

var allFileSystemTriggers = Task.Run(() => context.FileSystemTriggers.GetAllFileSystemTriggersAsync()).Result;
foreach(FileSystemTrigger fileSystemTrigger in allFileSystemTriggers)
Console.WriteLine("FileSystem Trigger Name: " + fileSystemTrigger.Name);
}
C#
public IControlRoomContext LoginControlRoom()
{
IControlRoomContext context;
string connectionString;

connectionString = "ServerUrl=https://demo.onnitellibuddies.com;UserName=demoadmin;Password=password";
context = new ControlRoomContext(connectionString);

context.Open();
return context;
}