This is a simple endpoint for testing PreEmptive Analytics message transmission from an instrumented application. The messages received are stored on-disk in their raw formats.
Microsoft .NET 4.5 or greater is required for this application.
- Build the
pa-test-endpoint.sln
solution in Visual Studio and under the Release configuration. - Start the test endpoint by running
Test Endpoint\bin\Release\endpoint.exe
. Note the port indicated by the endpoint's startup. - Instrument the application to be tested, setting the endpoint to the machine and port the test endpoint is running on.
- Test the instrumented application.
- The messages received by the test endpoint are captured and saved to disk in a
received
subdirectory of the current working directory. A separate file is created for each envelope received, named based on the envelope ID.
- The messages received by the test endpoint are captured and saved to disk in a
- To stop the test endpoint, input
Ctrl+C
.
/h
- Prints this argument reference./p:portnum
- Port number to listen on (default8080
)./l:listeners
- Number of connection listeners (default 4 per CPU)./f
- Always return the 500 network response code./slow:secs
- Wait [secs] seconds before each response to sender./nowrite
- Don't save incoming envelopes (or check for duplicates)./perf
- Various changes to allow high throughput./max-length:num
- Specify max size in bytes of requests to accept.
The pa-test-endpoint is licensed under MS-PL; see License.txt
for details.