Echo (Pipe Action)
Show how to create a script for a pipe action.
This sample is intended to run as a pipe action.
Create a new action and select this script to run for it, on the action page select the action from the drop down list next to pipe action.
Then run the fvc.exe program from the command line, the argument to fvc.exe will be echoed back to the cmd line.
fvc.exe can be used to easily create custom local integrations with FVC.
using System.Collections.Generic;
using VideoCataloger;
using System.Runtime;
class Script
{
// this is a sample script to show how to pipe action.
// make an action that runs this script and set it as a pipe action on the action page
// then from the cmd line run "fvc.exe Hello world"
// hello world should be printed in the console
static public async System.Threading.Tasks.Task Run ( IScripting scripting, string arguments )
{
scripting.GetConsole().Clear();
scripting.GetConsole().WriteLine("Revieved:" + arguments );
scripting.GetActionPipe().WriteLine(arguments);
}
}