You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1003 B
33 lines
1003 B
using Application.Services;
|
|
using Infrastructure.Email;
|
|
using Infrastructure.Sms;
|
|
using IoT.UI.Shard;
|
|
using IoTCenter.Services;
|
|
using Microsoft.AspNetCore.Builder;
|
|
using Microsoft.AspNetCore.Hosting;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.Extensions.Configuration;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace IoTCenter
|
|
{
|
|
public class Startup : IoTServiceStartup
|
|
{
|
|
public Startup(IConfiguration configuration, IHostingEnvironment env) : base(configuration, env)
|
|
{
|
|
}
|
|
|
|
public override void ConfigureServices(IServiceCollection services)
|
|
{
|
|
services.AddTransient<IEmailSender, EmptyEmailSender>();
|
|
services.AddTransient<ISmsSender, EmptySmsSender>();
|
|
services.AddSingleton<INodeService, NodeService>();
|
|
base.ConfigureServices(services);
|
|
}
|
|
|
|
public override void UseSignalR(IApplicationBuilder app)
|
|
{
|
|
this.UseSignalR<PageHub>(app);
|
|
}
|
|
}
|
|
} |