This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Web.Http; | |
using Synapse.Services; | |
/// <summary> | |
/// Create a new Class Library (dll) project | |
/// Add a ref to Synapse.Services.Extensibility from: https://www.nuget.org/packages/Synapse.Server.Extensibility | |
/// </summary> | |
namespace Synapse.Custom | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\synapse>Synapse.Controller.Cli.exe l filter:json | |
Calling GetPlanList on http://localhost:20001/synapse/execute | |
[ | |
"jsonList", | |
"jsonSimple" | |
] | |
//same, as a URL | |
http://localhost:20001/synapse/execute/?filter=json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Synapse.Core; | |
namespace ExampleHandler | |
{ | |
//Inherit HandlerRuntimeBase for the easiest implementation. | |
public class MyHandler : HandlerRuntimeBase | |
{ | |
override public ExecuteResult Execute(HandlerStartInfo startInfo) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# - This sample script expects to use the attached Synapse Plan "jsonEcho.yaml", which calls "jsonEcho.ps1" | |
# - To execute the script, download Synapse.Server, following the instructions here: | |
# http://synapse.readthedocs.io/en/latest/run/server/ | |
# - It is fine to run Controller/Node from the associated CLIs; locate jsonEcho.ps1/jsonEcho.yaml in the | |
# Controller/FileSystemDal/Plans folder, and update jsonEcho.ps1 for the correct folder path. | |
$hostPort = "localhost:20001" | |
$planName = "jsonEcho" | |
$uri = "http://$hostPort/synapse/execute/$planName/start/" |