This project is read-only.

RestTrigger


RestTrigger(string url)
Example : .RestTrigger("/starting/url")
The scenario start when a GET request is called on "http://servername:5000/starting/url"

RestTrigger(string url, object data)
Example :
var data = new MyObject();
Scenario.Create()
.RestTrigger("/say/{text}", data)
.Say(data, "{text}")
.Start(); 


The scenario start when a GET request is called on "http://servername:5000/say/bonjour"
And the property Text of the MyObject is set with the value "bonjour" and the application is say the property Text of the same object.

Last edited Aug 25, 2013 at 7:50 PM by swoog, version 1

Comments

No comments yet.