瀏覽代碼

update samples.

undefined
Savorboard 6 年之前
父節點
當前提交
0d24027a30
共有 3 個文件被更改,包括 4 次插入5 次删除
  1. +1
    -2
      samples/Sample.Kafka.MySql/Sample.Kafka.MySql.csproj
  2. +2
    -2
      samples/Sample.Kafka.MySql/Startup.cs
  3. +1
    -1
      samples/Sample.RabbitMQ.MySql/AppDbContext.cs

+ 1
- 2
samples/Sample.Kafka.MySql/Sample.Kafka.MySql.csproj 查看文件

@@ -9,9 +9,8 @@
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.6" />
<PackageReference Include="MySqlConnector" Version="0.38.0" />
<PackageReference Include="MySqlConnector" Version="0.40.3" />
<PackageReference Include="NLog.Web.AspNetCore" Version="4.5.2" />
<PackageReference Include="zipkin4net" Version="1.2.0" />
</ItemGroup>
<ItemGroup>
<DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="2.0.0" />


+ 2
- 2
samples/Sample.Kafka.MySql/Startup.cs 查看文件

@@ -10,8 +10,8 @@ namespace Sample.Kafka.MySql
{
services.AddCap(x =>
{
x.UseMySql("Server=192.168.10.110;Database=testcap;UserId=root;Password=123123;");
x.UseKafka("192.168.10.110:9092");
x.UseMySql("Server=localhost;Database=testcap;UserId=root;Password=123123;");
x.UseKafka("localhost:9092");
x.UseDashboard();
});



+ 1
- 1
samples/Sample.RabbitMQ.MySql/AppDbContext.cs 查看文件

@@ -6,7 +6,7 @@ namespace Sample.RabbitMQ.MySql
{
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
optionsBuilder.UseMySql("Server=192.168.10.110;Database=testcap;UserId=root;Password=123123;");
optionsBuilder.UseMySql("Server=localhost;Database=testcap;UserId=root;Password=123123;");
}
}
}

Loading…
取消
儲存