feat: Use MapStaticAssets over UseStaticFiles
This commit is contained in:
@@ -25,7 +25,7 @@ public interface ITextItem : IGrainWithStringKey
|
|||||||
public sealed class TextItemGrain : Grain, ITextItem, IRemindable
|
public sealed class TextItemGrain : Grain, ITextItem, IRemindable
|
||||||
{
|
{
|
||||||
private readonly IPersistentState<TextItem> _state;
|
private readonly IPersistentState<TextItem> _state;
|
||||||
private IGrainReminder _reminder;
|
private IGrainReminder? _reminder;
|
||||||
|
|
||||||
public TextItemGrain(
|
public TextItemGrain(
|
||||||
[PersistentState("text")] IPersistentState<TextItem> state)
|
[PersistentState("text")] IPersistentState<TextItem> state)
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ app.UseHttpsRedirection();
|
|||||||
app.UseResponseCompression();
|
app.UseResponseCompression();
|
||||||
|
|
||||||
|
|
||||||
app.UseStaticFiles();
|
app.MapStaticAssets();
|
||||||
app.UseAntiforgery();
|
app.UseAntiforgery();
|
||||||
|
|
||||||
app.MapRazorComponents<App>()
|
app.MapRazorComponents<App>()
|
||||||
|
|||||||
Reference in New Issue
Block a user