Bugfix variation context in background tasks
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
using Umbraco.Core.Models.PublishedContent;
|
||||
|
||||
namespace Umbraco.Web.Models.PublishedContent
|
||||
{
|
||||
/// <summary>
|
||||
/// Implements a hybrid <see cref="IVariationContextAccessor"/>.
|
||||
/// </summary>
|
||||
internal class HybridVariationContextAccessor : HybridAccessorBase<VariationContext>, IVariationContextAccessor
|
||||
{
|
||||
public HybridVariationContextAccessor(IHttpContextAccessor httpContextAccessor)
|
||||
: base(httpContextAccessor)
|
||||
{ }
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override string ItemKey => "Umbraco.Web.HybridVariationContextAccessor";
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the <see cref="VariationContext"/> object.
|
||||
/// </summary>
|
||||
public VariationContext VariationContext
|
||||
{
|
||||
get => Value;
|
||||
set => Value = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user