var builder = WebApplication.CreateBuilder(args);
// Add MudBlazor services
builder.Services.AddMudServices();
// Add services to the container.
builder.Services.AddRazorComponents()
.AddInteractiveWebAssemblyComponents();
var app = builder.Build();
app.UsePathBase("/foo/bar");
// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
app.UseWebAssemblyDebugging();
}
else
{
app.UseExceptionHandler("/Error", createScopeForErrors: true);
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
app.UseHsts();
}
app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseStaticFiles(new StaticFileOptions()
{
RequestPath = "/foo/bar",
ServeUnknownFileTypes = true,
});
app.UseAntiforgery();
app.MapRazorComponents()
.AddInteractiveWebAssemblyRenderMode()
.AddAdditionalAssemblies(typeof(MudBlazorWebApp1.Client._Imports).Assembly);
app.Run();
Wenn ich dies ausführe, funktioniert es, wenn ich die Adresse https: // localhost: 44381/ abziele, aber ich erwarte, auf https: // localhost: 44381/zu klettern. foo/bar Aber wenn ich dies tue /> Was mache ich hier falsch? />
Ich habe eine sehr einfache Mud Blazor -App erstellt, aber aus irgendeinem Grund wird der Basispfad nicht respektiert. Dies ist mein Programm.cs < /p> [code]var builder = WebApplication.CreateBuilder(args);
// Add services to the container. builder.Services.AddRazorComponents() .AddInteractiveWebAssemblyComponents();
var app = builder.Build(); app.UsePathBase("/foo/bar");
// Configure the HTTP request pipeline. if (app.Environment.IsDevelopment()) { app.UseWebAssemblyDebugging(); } else { app.UseExceptionHandler("/Error", createScopeForErrors: true); // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts. app.UseHsts(); }
app.Run(); [/code] Wenn ich dies ausführe, funktioniert es, wenn ich die Adresse https: // localhost: 44381/ abziele, aber ich erwarte, auf https: // localhost: 44381/zu klettern. foo/bar Aber wenn ich dies tue /> Was mache ich hier falsch? />
Neu in Mudblazor, aber hier geht's.
Ich habe eine Form. Wenn der Benutzer Daten ausfüllt und beschließt, zu gehen, versuche ich, mit dem Dialogfeld Optionen ein nicht gespeichertes Änderungs -Flag...
Ich versuche, eine Python -Transformation zu erstellen, bei der ich NLTK importieren muss. Wenn ich NLTK importiere, bekomme ich später:
Resource [93mpunkt_tab[0m not found.
Please use the NLTK...
Wie kann ich den Wert einer Schatteneigenschaft beim ersten Einfügen auf den Wert einer anderen Eigenschaft setzen?
Ich möchte den Zeitpunkt aufzeichnen, zu dem eine Entität mit CreatedAt eingefügt...
Ich habe unten eine Fastapi -App.
from fastapi import Depends, FastAPI, HTTPException, Security
from fastapi.security import HTTPAuthorizationCredentials, HTTPBearer