Esempio n. 1
0
        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();
        }