title | summary | component | reviewed |
---|---|---|---|
Platform Sample installation |
Installation instructions for using the platform sample for demo purposes. |
PlatformSample |
2024-11-06 |
The Platform Sample package is a portable version of the Particular Service Platform which can be used to demonstrate the platform without installing it. This is the easiest way to experience the Particular Service Platform.
Warning
The Platform Sample is not suited for production usage and should only be used for demonstrating the Platform during presentations or in samples.
The Platform Sample package includes instances of ServiceControl, ServiceControl Monitoring, and ServicePulse. They are all configured to use the Learning Transport. Other transports are not supported by the Platform Sample package. At this time, ServiceInsight is not included in the Platform Sample package.
In any existing Visual Studio solution, the following steps are required:
- Add a new Console App project.
- Install the
Particular.PlatformSample
NuGet package. - Add the following code to
Program.Main
:
snippet: Launch
The Platform Sample package performs the following when the Console App is started:
- Copies platform binaries into the project output directory.
- Finds available ports for all the platform tools.
- Launches ServiceControl and ServiceControl.Monitoring.
- Waits for the ServiceControl API to be responsive, which may take a while.
- Opens a browser window with ServicePulse.
PlatformLauncher.Launch()
accepts some optional parameters.
By default, the console output from ServiceControl and ServiceControl.Monitoring is suppressed. For debugging or curiosity, console output may be shown by specifying:
snippet: ShowConsoleOutput
Some samples benefit from opening ServicePulse with a specific view, rather than the dashboard.
For example, to open ServicePulse with the Monitoring view:
snippet: ServicePulseDefaultRoute
The message replay tutorial is a sample that uses the Platform Sample package to view and retry failed messages. It shows how the Platform Sample package works from within an existing Visual Studio solution.
To use ServiceInsight with the sample, download and install ServiceInsight. After starting ServiceInsight, connect to ServiceControl using the Endpoint Explorer at, for example, http://localhost:49200/api
.
Note
The Platform Sample package will search for available ports and then display the ports being used. The actual ServiceControl port that needs to be used in the Endpoint Explorer can be seen in the output.