'fixes' an issue where you can get any property value back due to the incorrect cache key being used
This commit is contained in:
@@ -1,23 +1,23 @@
|
||||
using System;
|
||||
//using System;
|
||||
|
||||
namespace Umbraco.Core.Models.PublishedContent
|
||||
{
|
||||
/// <summary>
|
||||
/// Provides a ThreadStatic-based implementation of <see cref="IVariationContextAccessor"/>.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>Something must set the current context.</para>
|
||||
/// </remarks>
|
||||
public class ThreadStaticVariationContextAccessor : IVariationContextAccessor
|
||||
{
|
||||
[ThreadStatic]
|
||||
private static VariationContext _context;
|
||||
//namespace Umbraco.Core.Models.PublishedContent
|
||||
//{
|
||||
// /// <summary>
|
||||
// /// Provides a ThreadStatic-based implementation of <see cref="IVariationContextAccessor"/>.
|
||||
// /// </summary>
|
||||
// /// <remarks>
|
||||
// /// <para>Something must set the current context.</para>
|
||||
// /// </remarks>
|
||||
// public class ThreadStaticVariationContextAccessor : IVariationContextAccessor
|
||||
// {
|
||||
// [ThreadStatic]
|
||||
// private static VariationContext _context;
|
||||
|
||||
/// <inheritdoc />
|
||||
public VariationContext VariationContext
|
||||
{
|
||||
get => _context;
|
||||
set => _context = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
// /// <inheritdoc />
|
||||
// public VariationContext VariationContext
|
||||
// {
|
||||
// get => _context;
|
||||
// set => _context = value;
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
|
||||
Reference in New Issue
Block a user