16 lines
435 B
C#
16 lines
435 B
C#
namespace WorkspaceAccessHost.Agent;
|
|
|
|
internal static class AgentApplication
|
|
{
|
|
public static async Task RunAsync(string[] args)
|
|
{
|
|
var builder = Host.CreateApplicationBuilder(new HostApplicationBuilderSettings
|
|
{
|
|
Args = args,
|
|
ContentRootPath = AppContext.BaseDirectory
|
|
});
|
|
builder.Services.AddHostedService<AgentWorker>();
|
|
await builder.Build().RunAsync();
|
|
}
|
|
}
|