Bläddra i källkod

update samples.

undefined
Savorboard 6 år sedan
förälder
incheckning
b68e82d55a
3 ändrade filer med 4 tillägg och 5 borttagningar
  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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

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

Laddar…
Avbryt
Spara