30 lines
751 B
C#
30 lines
751 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.Extensions.Configuration;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace JiShe.CollectBus.Common.Models
|
|
{
|
|
public class ServiceContext
|
|
{
|
|
internal ServiceContext(IServiceCollection serviceCollection, IConfiguration configuration)
|
|
{
|
|
Services = serviceCollection;
|
|
Configuration = configuration;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 依赖注入服务
|
|
/// </summary>
|
|
public IServiceCollection Services { get; }
|
|
|
|
/// <summary>
|
|
/// 配置
|
|
/// </summary>
|
|
public IConfiguration Configuration { get; }
|
|
}
|
|
}
|