Skip to content

dtm-labs/dtmcli-csharp-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

  1. Run the sample code quickly by executing runsample.ps1.
  2. 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.

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages