Remove usage of TaskCache
This commit is contained in:
parent
a6d2c04195
commit
758be9ae13
|
|
@ -20,6 +20,5 @@ Microsoft.AspNetCore.Razor.TagHelpers.ITagHelper</Description>
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Html.Abstractions" Version="$(AspNetCoreVersion)" />
|
<PackageReference Include="Microsoft.AspNetCore.Html.Abstractions" Version="$(AspNetCoreVersion)" />
|
||||||
<PackageReference Include="Microsoft.Extensions.CopyOnWriteDictionary.Sources" Version="$(AspNetCoreVersion)" PrivateAssets="All" />
|
<PackageReference Include="Microsoft.Extensions.CopyOnWriteDictionary.Sources" Version="$(AspNetCoreVersion)" PrivateAssets="All" />
|
||||||
<PackageReference Include="Microsoft.Extensions.HashCodeCombiner.Sources" Version="$(AspNetCoreVersion)" PrivateAssets="All" />
|
<PackageReference Include="Microsoft.Extensions.HashCodeCombiner.Sources" Version="$(AspNetCoreVersion)" PrivateAssets="All" />
|
||||||
<PackageReference Include="Microsoft.Extensions.TaskCache.Sources" Version="$(AspNetCoreVersion)" PrivateAssets="All" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@ using System.Diagnostics;
|
||||||
using System.Text.Encodings.Web;
|
using System.Text.Encodings.Web;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Microsoft.AspNetCore.Razor.TagHelpers;
|
using Microsoft.AspNetCore.Razor.TagHelpers;
|
||||||
using Microsoft.Extensions.Internal;
|
|
||||||
|
|
||||||
namespace Microsoft.AspNetCore.Razor.Runtime.TagHelpers
|
namespace Microsoft.AspNetCore.Razor.Runtime.TagHelpers
|
||||||
{
|
{
|
||||||
|
|
@ -32,7 +31,7 @@ namespace Microsoft.AspNetCore.Razor.Runtime.TagHelpers
|
||||||
tagMode,
|
tagMode,
|
||||||
items: new Dictionary<object, object>(),
|
items: new Dictionary<object, object>(),
|
||||||
uniqueId: string.Empty,
|
uniqueId: string.Empty,
|
||||||
executeChildContentAsync: () => TaskCache.CompletedTask,
|
executeChildContentAsync: () => Task.CompletedTask,
|
||||||
startTagHelperWritingScope: _ => { },
|
startTagHelperWritingScope: _ => { },
|
||||||
endTagHelperWritingScope: () => new DefaultTagHelperContent())
|
endTagHelperWritingScope: () => new DefaultTagHelperContent())
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Microsoft.Extensions.Internal;
|
|
||||||
|
|
||||||
namespace Microsoft.AspNetCore.Razor.TagHelpers
|
namespace Microsoft.AspNetCore.Razor.TagHelpers
|
||||||
{
|
{
|
||||||
|
|
@ -54,7 +53,7 @@ namespace Microsoft.AspNetCore.Razor.TagHelpers
|
||||||
public virtual Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
|
public virtual Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
|
||||||
{
|
{
|
||||||
Process(context, output);
|
Process(context, output);
|
||||||
return TaskCache.CompletedTask;
|
return Task.CompletedTask;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -2,7 +2,6 @@
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Microsoft.Extensions.Internal;
|
|
||||||
|
|
||||||
namespace Microsoft.AspNetCore.Razor.TagHelpers
|
namespace Microsoft.AspNetCore.Razor.TagHelpers
|
||||||
{
|
{
|
||||||
|
|
@ -34,7 +33,7 @@ namespace Microsoft.AspNetCore.Razor.TagHelpers
|
||||||
public virtual Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
|
public virtual Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
|
||||||
{
|
{
|
||||||
Process(context, output);
|
Process(context, output);
|
||||||
return TaskCache.CompletedTask;
|
return Task.CompletedTask;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue