sheng-jie / dtmcli-csharp-sample

dtmcli c# sample

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

dtmcli c# sample

License:MIT License


Languages

Language:C# 98.4%Language:Dockerfile 1.1%Language:JavaScript 0.3%Language:Shell 0.1%Language:PowerShell 0.1%