Skip to content

服务容器的构建策略可以通过虚函数覆写 #124

@ymh199478

Description

@ymh199478

新增虚函数允许覆写服务构建的反射方案

  • Support/Container/Container.cs
/// <summary>
/// 通过指定的类型构建服务实现
/// </summary>
/// <param name="makeServiceType">指定的服务类型</param>
/// <param name="userParams">用户自定义参数</param>
/// <returns>构建的服务实现</returns>
protected virtual object CreateInstance(Type makeServiceType, object[] userParams);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions