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.

23 lines
479 B

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