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

2 years ago
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace Apewer.Web
  5. {
  6. /// <summary>服务的生命周期。</summary>
  7. public enum ApiServiceLifetime
  8. {
  9. /// <summary>对所有请求使用同一个实例。</summary>
  10. Singleton,
  11. /// <summary>对每个请求使用同一个实例。</summary>
  12. Scoped,
  13. /// <summary>对每个请求里的每次声明创建新实例。</summary>
  14. Transient
  15. }
  16. }