20 lines
607 B
C#
20 lines
607 B
C#
|
|
using Microsoft.Extensions.DependencyInjection;
|
|||
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using System.Threading.Tasks;
|
|||
|
|
using Volo.Abp.Modularity;
|
|||
|
|
|
|||
|
|
namespace JiShe.CollectBus.IoTDBProvider
|
|||
|
|
{
|
|||
|
|
public class CollectBusIoTDBModule : AbpModule
|
|||
|
|
{
|
|||
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
|||
|
|
{
|
|||
|
|
context.Services.Configure<IoTDBOptions>(context.Services.GetConfiguration().GetSection(nameof(IoTDBOptions)));
|
|||
|
|
context.Services.AddSingleton<IIoTDBProvider, IoTDBProvider>();
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|