山东雷驰
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.

25 lines
584 B

3 months ago
using System;
namespace Kean.Domain
{
/// <summary>
/// 包含共享的域索引
/// </summary>
public sealed class Domain : IDomain
{
private readonly IServiceProvider _serviceProvider;
/// <summary>
/// 依赖注入
/// </summary>
public Domain(IServiceProvider serviceProvider) =>
_serviceProvider = serviceProvider;
/*
*
*/
public (string Name, SharedService SharedService) this[string index] =>
(index, new(_serviceProvider, index));
}
}