Ver código fonte

update samples.

master
yangxiaodong 7 anos atrás
pai
commit
0a0cd8a510
3 arquivos alterados com 2 adições e 3 exclusões
  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 Ver arquivo

@@ -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 Ver arquivo

@@ -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 Ver arquivo

@@ -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.


Carregando…
Cancelar
Salvar