Initial commit

This commit is contained in:
Stone_Red
2025-12-19 18:16:08 +01:00
commit e647916f78
25 changed files with 953 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
using RemoteExec.Server.Hubs;
WebApplicationBuilder builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddControllers();
builder.Services.AddSignalR(options => options.MaximumReceiveMessageSize = null);
builder.Services.AddOpenApi();
WebApplication app = builder.Build();
app.MapHub<RemoteExecutionHub>("/remote");
// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
_ = app.MapOpenApi();
}
app.UseHttpsRedirection();
app.UseAuthorization();
app.MapControllers();
app.Run();