using JiShe.CollectBus.IoTDB.Context;
using JiShe.CollectBus.IoTDB.Options;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.Modularity;

namespace JiShe.CollectBus.IoTDB;

/// <summary>
///     CollectBusIoTDBModule
/// </summary>
public class CollectBusIoTDbModule : AbpModule
{
    public override void ConfigureServices(ServiceConfigurationContext context)
    {
        var configuration = context.Services.GetConfiguration();
        Configure<IoTDbOptions>(options => { configuration.GetSection(nameof(IoTDbOptions)).Bind(options); });

        //// 注册上下文为Scoped
        //context.Services.AddScoped<IoTDBRuntimeContext>();
    }
}