FileSystemTrigger.DeleteFileSystemTriggerAsync
Description
The API deletes the existing File System Trigger with provided id from the connected Control Room.
Signature [C#]
Task DeleteFileSystemTriggerAsync(int Id)
Properties
Input
Property | Description |
---|---|
Id | Id of the filesystem trigger. |
Remarks
Use DeleteFileSystemTriggerAsync API to delete FileSystem Trigger from the connected Control Room.
Example
C#
public void DeleteFileSystemTrigger()
{
IControlRoomContext context = LoginControlRoom("RegularBuild", "BasicAuth");
int Id = 1;
Task.Run(() => context.FileSystemTriggers.DeleteFileSystemTriggerAsync(Id)).Wait();
}
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;
}