'fixes' an issue where you can get any property value back due to the incorrect cache key being used

This commit is contained in:
Shannon
2018-05-08 16:01:20 +10:00
parent 7728dfa853
commit 389fb100bb
3 changed files with 26 additions and 23 deletions

View File

@@ -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;
// }
// }
//}