static void Main(string[] args) { var ac = new ActivitySystem(); ac.Run("http://127.0.0.1:8080/"); Console.ReadLine(); }
private void StartClientAndSystem() { _activitySystem = new ActivitySystem(systemName: "WardNode-" + Guid.NewGuid()); _activitySystem.ConnectionEstablished += _activitySystem_ConnectionEstablished; InitializeEvents(_activitySystem); _activitySystem.Run(Net.GetUrl(_webConfiguration.Address, _webConfiguration.Port, "").ToString()); _activitySystem.StartBroadcast(ABC.Infrastructure.Discovery.DiscoveryType.Zeroconf, "Department-x", "Anonymous Hospital, 4th floor"); _activitySystem.StartLocationTracker(); }