/// <summary>
 /// 构造函数
 /// </summary>
 public ApiOutputCacheAttribute()
 {
     this.Provider = ApiOutputCacheConfig.DefaultProvider;
 }
Exemple #2
0
 /// <summary>
 /// set default provider
 /// </summary>
 /// <param name="provider"></param>
 public static void SetDefaultProvider(ApiOutputCacheProvider provider)
 {
     DefaultProvider = provider ?? throw new ArgumentNullException(nameof(provider));
 }