yangxiaodong пре 7 година
родитељ
комит
0a0cd8a510
3 измењених фајлова са 2 додато и 3 уклоњено
  1. +0
    -1
      samples/Sample.Kafka/Controllers/ValuesController.cs
  2. +1
    -1
      samples/Sample.Kafka/Sample.Kafka.csproj
  3. +1
    -1
      samples/Sample.Kafka/Startup.cs

+ 0
- 1
samples/Sample.Kafka/Controllers/ValuesController.cs Прегледај датотеку

@@ -1,7 +1,6 @@
using System;
using System.Threading.Tasks;
using DotNetCore.CAP;
using DotNetCore.CAP.RabbitMQ;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;



+ 1
- 1
samples/Sample.Kafka/Sample.Kafka.csproj Прегледај датотеку

@@ -24,7 +24,7 @@
<DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="1.0.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\DotNetCore.CAP.RabbitMQ\DotNetCore.CAP.RabbitMQ.csproj" />
<ProjectReference Include="..\..\src\DotNetCore.CAP.Kafka\DotNetCore.CAP.Kafka.csproj" />
<ProjectReference Include="..\..\src\DotNetCore.CAP.SqlServer\DotNetCore.CAP.SqlServer.csproj" />
<ProjectReference Include="..\..\src\DotNetCore.CAP\DotNetCore.CAP.csproj" />
</ItemGroup>


+ 1
- 1
samples/Sample.Kafka/Startup.cs Прегледај датотеку

@@ -29,7 +29,7 @@ namespace Sample.Kafka
{
x.UseEntityFramework<AppDbContext>();
//x.UseSqlServer("Server=DESKTOP-M9R8T31;Initial Catalog=Test;User Id=sa;Password=P@ssw0rd;MultipleActiveResultSets=True");
x.UseRabbitMQ(o => { o.HostName = "192.168.2.206"; o.UserName = "admin"; o.Password = "123123"; });
x.UseKafka("localhost:9092");
});

// Add framework services.


Loading…
Откажи
Сачувај