diff --git a/src/Core/Context/CurrentContext.cs b/src/Core/Context/CurrentContext.cs index 40a1bca33f..3e72ff5474 100644 --- a/src/Core/Context/CurrentContext.cs +++ b/src/Core/Context/CurrentContext.cs @@ -28,7 +28,7 @@ public class CurrentContext : ICurrentContext public virtual HttpContext HttpContext { get; set; } public virtual Guid? UserId { get; set; } - public virtual Lazy> UserAsync { get; private set; } + public virtual Lazy> UserAsync { get; private set; } = new(() => Task.FromResult(null)); public virtual string DeviceIdentifier { get; set; } public virtual DeviceType? DeviceType { get; set; } public virtual string IpAddress { get; set; }