From 0a0cd8a5107680a0ece709c6266ccce17880d3c2 Mon Sep 17 00:00:00 2001 From: yangxiaodong Date: Thu, 20 Jul 2017 09:33:11 +0800 Subject: [PATCH] update samples. --- samples/Sample.Kafka/Controllers/ValuesController.cs | 1 - samples/Sample.Kafka/Sample.Kafka.csproj | 2 +- samples/Sample.Kafka/Startup.cs | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/samples/Sample.Kafka/Controllers/ValuesController.cs b/samples/Sample.Kafka/Controllers/ValuesController.cs index 13142a5..6783b19 100644 --- a/samples/Sample.Kafka/Controllers/ValuesController.cs +++ b/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; diff --git a/samples/Sample.Kafka/Sample.Kafka.csproj b/samples/Sample.Kafka/Sample.Kafka.csproj index 3788806..5c9e38f 100644 --- a/samples/Sample.Kafka/Sample.Kafka.csproj +++ b/samples/Sample.Kafka/Sample.Kafka.csproj @@ -24,7 +24,7 @@ - + diff --git a/samples/Sample.Kafka/Startup.cs b/samples/Sample.Kafka/Startup.cs index 5cb3fd8..add80bb 100644 --- a/samples/Sample.Kafka/Startup.cs +++ b/samples/Sample.Kafka/Startup.cs @@ -29,7 +29,7 @@ namespace Sample.Kafka { x.UseEntityFramework(); //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.