2025-03-13 10:58:49 +08:00
|
|
|
|
using JiShe.CollectBus.FreeRedisProvider.Options;
|
|
|
|
|
|
using Microsoft.Extensions.Configuration;
|
2025-03-12 09:58:37 +08:00
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
using Volo.Abp.Modularity;
|
|
|
|
|
|
|
2025-03-13 11:55:51 +08:00
|
|
|
|
namespace JiShe.CollectBus.FreeRedisProvider
|
2025-03-12 09:58:37 +08:00
|
|
|
|
{
|
2025-03-13 11:55:51 +08:00
|
|
|
|
public class FreeRedisProviderModule : AbpModule
|
2025-03-12 09:58:37 +08:00
|
|
|
|
{
|
2025-03-13 11:55:51 +08:00
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
2025-03-12 09:58:37 +08:00
|
|
|
|
{
|
2025-03-13 11:55:51 +08:00
|
|
|
|
var configuration = context.Services.GetConfiguration();
|
|
|
|
|
|
|
|
|
|
|
|
Configure<FreeRedisOptions>(options =>
|
|
|
|
|
|
{
|
|
|
|
|
|
configuration.GetSection("Redis").Bind(options);
|
|
|
|
|
|
});
|
2025-03-12 09:58:37 +08:00
|
|
|
|
|
|
|
|
|
|
|
2025-03-13 11:55:51 +08:00
|
|
|
|
}
|
2025-03-12 09:58:37 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-03-13 11:55:51 +08:00
|
|
|
|
|
|
|
|
|
|
|