Browse Source

update samples.

undefined
Savorboard 6 years ago
parent
commit
0d24027a30
3 changed files with 4 additions and 5 deletions
  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 View File

@@ -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" />


+ 2
- 2
samples/Sample.Kafka.MySql/Startup.cs View File

@@ -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();
}); });




+ 1
- 1
samples/Sample.RabbitMQ.MySql/AppDbContext.cs View File

@@ -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;");
} }
} }
} }

Loading…
Cancel
Save