标签: asp.net-core servicestack
ServiceStack的RequestContext for .NET Core正在使用静态AsyncLocal数据:
RequestContext
AsyncLocal
public static AsyncLocal<IDictionary> AsyncRequestItems = new AsyncLocal<IDictionary>();
每个请求结束将调用:
AsyncRequestItems.Value?.Clear();
如果多个请求设置项密钥“test”,是否不会覆盖它?
它是线程安全的吗?