using System; using System.Collections.Generic; using System.Text; namespace Apewer.Web { /// 服务的生命周期。 public enum ApiServiceLifetime { /// 对所有请求使用同一个实例。 Singleton, /// 对每个请求使用同一个实例。 Scoped, /// 对每个请求里的每次声明创建新实例。 Transient } }