public void RegisterHost(IHost host) { if (host.IsLocal) this.localhosts[host.Id] = host; else this.remotehosts[host.Id] = host; }