Przeglądaj źródła

update samples.

undefined
Savorboard 6 lat temu
rodzic
commit
0d24027a30
3 zmienionych plików z 4 dodań i 5 usunięć
  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 Wyświetl plik

@@ -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 Wyświetl plik

@@ -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 Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz