Initialize cross-platform workspace host scaffold
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user