English | 简体中文
The sample repository of dtmcli-csharp
Reference resources Installation
cd DtmSample
dotnet run DtmSample.csproj
Open through browser with this URL http://localhost:9090
. It will jump to the swagger page and you can selectively test the corresponding type of transaction mode.
NOTE: In order to facilitate quick experience, the database in the sample code can be used directly.
There are two ways to run the sample code quickly:
- Run the sample code quickly by executing
runsample.ps1
. - Open Visual Studio, and select
Docker compose
in the toolbar to run it. In this mode, you can debug the project.
Both of the above two ways will start DTM server, MySQL (demonstration sub transaction barrier) and dtmsample through docker compose.
After startup, you can see output similar to the following
Open through browser with this URL http://localhost:9090
. It will jump to the swagger page and you can selectively test the corresponding type of transaction mode.