From aa6840f07ec27a5d7d20edd79051ba1bd4875c9f Mon Sep 17 00:00:00 2001 From: Savorboard Date: Tue, 24 Jul 2018 10:12:15 +0800 Subject: [PATCH] cleanup samples. --- .../Controllers/ValuesController.cs | 2 -- samples/Sample.RabbitMQ.MongoDB/Program.cs | 9 +-------- samples/Sample.RabbitMQ.MongoDB/Startup.cs | 10 ++-------- 3 files changed, 3 insertions(+), 18 deletions(-) diff --git a/samples/Sample.RabbitMQ.MongoDB/Controllers/ValuesController.cs b/samples/Sample.RabbitMQ.MongoDB/Controllers/ValuesController.cs index a22af60..5e0a07d 100644 --- a/samples/Sample.RabbitMQ.MongoDB/Controllers/ValuesController.cs +++ b/samples/Sample.RabbitMQ.MongoDB/Controllers/ValuesController.cs @@ -1,6 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; using System.Threading.Tasks; using DotNetCore.CAP; using DotNetCore.CAP.Abstractions; diff --git a/samples/Sample.RabbitMQ.MongoDB/Program.cs b/samples/Sample.RabbitMQ.MongoDB/Program.cs index 7f32066..9271a46 100644 --- a/samples/Sample.RabbitMQ.MongoDB/Program.cs +++ b/samples/Sample.RabbitMQ.MongoDB/Program.cs @@ -1,12 +1,5 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.AspNetCore; +using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.Logging; namespace Sample.RabbitMQ.MongoDB { diff --git a/samples/Sample.RabbitMQ.MongoDB/Startup.cs b/samples/Sample.RabbitMQ.MongoDB/Startup.cs index 4f4bd69..637285d 100644 --- a/samples/Sample.RabbitMQ.MongoDB/Startup.cs +++ b/samples/Sample.RabbitMQ.MongoDB/Startup.cs @@ -1,16 +1,9 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using DotNetCore.CAP; +using DotNetCore.CAP; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; -using Microsoft.AspNetCore.HttpsPolicy; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Logging; -using Microsoft.Extensions.Options; using MongoDB.Driver; namespace Sample.RabbitMQ.MongoDB @@ -52,6 +45,7 @@ namespace Sample.RabbitMQ.MongoDB { app.UseDeveloperExceptionPage(); } + app.UseMvc(); app.UseCap();