Chronos Plugins 5.9.0
This documentation covers the plugin interfaces definitions and an example implementation.
|
Example for communication with external programs. More...
Public Member Functions | |
bool | DoSomething (string someParameter) |
Just uses a messagebox to show the external request. | |
Public Member Functions inherited from MockPlugin.RemoteAccessTester.IMockPlugin |
Static Public Member Functions | |
static void | StopService () |
Static Private Member Functions | |
static void | HostFaultedHandler (object sender, EventArgs e) |
Private Attributes | |
System.Windows.Forms.Form | mMainWindow |
Static Private Attributes | |
static ServiceHost | mHost |
Example for communication with external programs.
This example uses WCF to show how you can trigger actions within the plugin from external programs. See RemoteAccessTester.MessageTesterForm for the client side. Please note that WCF will be discontinued by Microsoft, the server components will not be part of .Net Core in the future. So, while this is a working example for current Chronos releases, you should maybe not base a new project on this method of interprocess communication, but switch to something else like gRPC or an ASP.net WebAPI.
Definition at line 19 of file RemoteServiceImplementation.cs.
bool MockPlugin.SampleList.RemotePluginService.DoSomething | ( | string | someParameter | ) |
Just uses a messagebox to show the external request.
someParameter |
Implements MockPlugin.RemoteAccessTester.IMockPlugin.
Definition at line 27 of file RemoteServiceImplementation.cs.
References MockPlugin.SampleList.RemotePluginService.mMainWindow.
|
staticprivate |
Definition at line 63 of file RemoteServiceImplementation.cs.
|
static |
Definition at line 78 of file RemoteServiceImplementation.cs.
References MockPlugin.SampleList.RemotePluginService.mHost.
Referenced by MockPlugin.SampleList.MockSampleListWorker.Dispose().
|
staticprivate |
Definition at line 62 of file RemoteServiceImplementation.cs.
Referenced by MockPlugin.SampleList.RemotePluginService.StopService().
|
private |
Definition at line 21 of file RemoteServiceImplementation.cs.
Referenced by MockPlugin.SampleList.RemotePluginService.DoSomething().