From 2cd8c75a09d624268ebd937237249812b8d3c370 Mon Sep 17 00:00:00 2001 From: Jonas Hendrickx Date: Fri, 4 Apr 2025 14:16:45 +0200 Subject: [PATCH] fix --- src/Core/Context/CurrentContext.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }