React to options
This commit is contained in:
parent
c3290a029f
commit
f3e828892d
|
|
@ -44,7 +44,7 @@ namespace Microsoft.Framework.DependencyInjection
|
|||
return serviceProvider =>
|
||||
{
|
||||
var codePointFilter = serviceProvider?.GetService<IOptions<WebEncoderOptions>>()?
|
||||
.Options?
|
||||
.Value?
|
||||
.CodePointFilter;
|
||||
return (codePointFilter != null) ? customFilterFactory(codePointFilter) : defaultFactory();
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue