This commit is contained in:
@@ -10,6 +10,7 @@ using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using OutputServiceTSDB.RabbitMQ;
|
||||
|
||||
namespace OutputServiceTSDB
|
||||
{
|
||||
@@ -25,6 +26,8 @@ namespace OutputServiceTSDB
|
||||
// This method gets called by the runtime. Use this method to add services to the container.
|
||||
public void ConfigureServices(IServiceCollection services)
|
||||
{
|
||||
services.AddHostedService<ConsumeRabbitMQHostedService>();
|
||||
|
||||
services.AddControllers();
|
||||
}
|
||||
|
||||
@@ -36,7 +39,7 @@ namespace OutputServiceTSDB
|
||||
app.UseDeveloperExceptionPage();
|
||||
}
|
||||
|
||||
app.UseHttpsRedirection();
|
||||
//app.UseHttpsRedirection();
|
||||
|
||||
app.UseRouting();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user