Browse Source

cleanup samples.

master
Savorboard 6 years ago
parent
commit
8b3c30cd93
3 changed files with 3 additions and 18 deletions
  1. +0
    -2
      samples/Sample.RabbitMQ.MongoDB/Controllers/ValuesController.cs
  2. +1
    -8
      samples/Sample.RabbitMQ.MongoDB/Program.cs
  3. +2
    -8
      samples/Sample.RabbitMQ.MongoDB/Startup.cs

+ 0
- 2
samples/Sample.RabbitMQ.MongoDB/Controllers/ValuesController.cs View File

@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using DotNetCore.CAP;
using DotNetCore.CAP.Abstractions;


+ 1
- 8
samples/Sample.RabbitMQ.MongoDB/Program.cs View File

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


+ 2
- 8
samples/Sample.RabbitMQ.MongoDB/Startup.cs View File

@@ -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();


Loading…
Cancel
Save