35 lines
772 B
C#
35 lines
772 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
using Photino.Blazor;
|
|
using VideoStudy.UI;
|
|
|
|
namespace VideoStudy.App;
|
|
|
|
class Program
|
|
{
|
|
[STAThread]
|
|
static void Main(string[] args)
|
|
{
|
|
var builder = PhotinoBlazorAppBuilder.CreateDefault(args);
|
|
|
|
builder.Services.AddVideoStudyUI();
|
|
|
|
builder.Services.AddScoped(sp => new HttpClient
|
|
{
|
|
BaseAddress = new Uri("http://localhost:5000"),
|
|
Timeout = TimeSpan.FromMinutes(10)
|
|
});
|
|
|
|
builder.RootComponents.Add<VideoStudy.UI.App>("#app");
|
|
|
|
var app = builder.Build();
|
|
|
|
app.MainWindow
|
|
.SetTitle("VideoStudy")
|
|
.SetSize(1280, 800)
|
|
.SetDevToolsEnabled(true)
|
|
.Center();
|
|
|
|
app.Run();
|
|
}
|
|
}
|