dtmcli-csharp-sample
dtmcli-csharp-sample copied to clipboard
dtmcli c# sample
English | 简体中文
dtmcli-csharp-sample
The sample repository of dtmcli-csharp
Quick start
Non docker user
Deploy and start DTM server
Reference resources Installation
Run the sample
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.
Docker user
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 composein 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.