2using System.ServiceModel;
3using System.Windows.Forms;
14 InitializeComponent();
29 mService = ChannelFactory<IMockPlugin>.CreateChannel(
new NetTcpBinding(), endpoint);
42 if (e.KeyCode == Keys.Enter)
47 lvRequests.Items.Add(
string.Format(
"Request {0}: Result {1}",tbMessage.Text, retval));
51 MessageBox.Show(
"Error accessing plugin: " + ex.Message);
Interaction with Chronos crossing the process barrier. A normal Chronos plugin is a class library loa...
Very basic service, only to show that you can trigger some action from outside and get a response.
bool DoSomething(string someParameter)
To avoid duplicating the endpoint definition in server and client.
Shows how to communicate from an external program with a Plugin in order to trigger actions in Chrono...
IMockPlugin Service
Get the service when it is needed for the first time.
void tbMessage_KeyDown(object sender, KeyEventArgs e)
When enter is pressed, send our parameter to the plugin provided service and show the result.