public void HandleNewProxy() { var vcall = VcallSubsystem.New(); var config = new HostingConfiguration(); var peer = new HostingPeer(config, vcall); var info = new ProxyInfo { Tag = Guid.NewGuid().ToString(), ListeningUri = "/tests", NameSpace = "Vcall.Testing", HostName = "localhost" }; var hosting = new Hosting(peer, vcall, config); hosting.HandleNewProxy(info); }
void IRepository.AddProxy(ProxyInfo info) { _proxies[info.Tag] = info; _counters.HostingPeer_State_AliveProxies++; }
void IRepository.RemoveProxy(ProxyInfo info) { bool wasThere = _proxies.Remove(info.Tag); if (wasThere) _counters.HostingPeer_State_AliveProxies--; }