Reacted to options and hosting changes after rebase.
This commit is contained in:
parent
3b7b0f867d
commit
20cc294c70
|
|
@ -8,7 +8,7 @@ namespace TagHelperSample.Web
|
|||
{
|
||||
public void Configure(IApplicationBuilder app)
|
||||
{
|
||||
app.UsePerRequestServices(services => services.AddMvc());
|
||||
app.UseServices(services => services.AddMvc());
|
||||
app.UseMvc();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ namespace Microsoft.AspNet.Mvc.TagHelpers
|
|||
private static AntiForgery GetAntiForgery()
|
||||
{
|
||||
// AntiForgery must be passed to TestableHtmlGenerator constructor but will never be called.
|
||||
var optionsAccessor = new Mock<IOptionsAccessor<MvcOptions>>();
|
||||
var optionsAccessor = new Mock<IOptions<MvcOptions>>();
|
||||
optionsAccessor
|
||||
.SetupGet(o => o.Options)
|
||||
.Returns(new MvcOptions());
|
||||
|
|
|
|||
Loading…
Reference in New Issue