8 references to SpaStaticFilesOptions
Microsoft.AspNetCore.SpaServices.Extensions (7)
StaticFiles\DefaultSpaStaticFileProvider.cs (2)
12
/// physical files at a location configured using <see cref="
SpaStaticFilesOptions
"/>.
20
SpaStaticFilesOptions
options)
StaticFiles\SpaStaticFilesExtensions.cs (5)
25
Action<
SpaStaticFilesOptions
>? configuration = null)
30
var optionsProvider = serviceProvider.GetService<IOptions<
SpaStaticFilesOptions
>>()!;
31
var
options = optionsProvider.Value;
38
throw new InvalidOperationException($"No {nameof(
SpaStaticFilesOptions
.RootPath)} " +
39
$"was set on the {nameof(
SpaStaticFilesOptions
)}.");
Microsoft.AspNetCore.SpaServices.Extensions.Tests (1)
SpaServicesExtensionsTests.cs (1)
56
private IServiceProvider GetServiceProvider(Action<
SpaStaticFilesOptions
> configuration = null)