This commit is contained in:
2024-06-25 14:47:28 +03:00
parent ce48d72209
commit 66d94ced8a
18 changed files with 1402 additions and 3 deletions

28
AZ.Compute.Agent/App.cs Normal file
View File

@@ -0,0 +1,28 @@

using AZ.Compute.Agent;
using Esiur.Net.IIP;
using Esiur.Resource;
using Esiur.Stores;
internal class App
{
private static async Task Main(string[] args)
{
// Create a store to keep objects.
var system = await Warehouse.Put("sys", new MemoryStore());
// Create a distibuted server
var esiurServer = await Warehouse.Put("sys/server", new DistributedServer() { Port = 10001});
// Add your object to the store
var service = await Warehouse.Put("sys/agent", new Node());
// Start your server
await Warehouse.Open();
Console.WriteLine("AZ Compute Agent is running.");
}
}