@@ -9,9 +9,8 @@ | |||||
<ItemGroup> | <ItemGroup> | ||||
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.6" /> | <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="NLog.Web.AspNetCore" Version="4.5.2" /> | ||||
<PackageReference Include="zipkin4net" Version="1.2.0" /> | |||||
</ItemGroup> | </ItemGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
<DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="2.0.0" /> | <DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="2.0.0" /> | ||||
@@ -10,8 +10,8 @@ namespace Sample.Kafka.MySql | |||||
{ | { | ||||
services.AddCap(x => | 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(); | x.UseDashboard(); | ||||
}); | }); | ||||
@@ -6,7 +6,7 @@ namespace Sample.RabbitMQ.MySql | |||||
{ | { | ||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) | 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;"); | |||||
} | } | ||||
} | } | ||||
} | } |