Installation for .NET¶
The following guides explain how to install a version of E2C that enables you to write applications in .NET.
Getting from source¶
The project is hosted on GitLab
$ git@gitlab.com:elastic-event-components/e2c.git
See INSTALL for instructions on how to install E2c.
Run a short program¶
var config = new string[] {
".run -- action",
" action.out -- print",
};
using E2c;
var graph = new Graph(config);
graph.Actor("action",
new Action<string, Output<string>>(
(data, output) => output.Invoke(data)));
graph.Actor("print",
new Action<string>(
Console.WriteLine));
graph.Run<string, string>("Hello, E2C");
If the system outputs the following, then you are ready to start writing E2C programs:
$ Hello, E2C