Пример #1
0
        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);
        }
Пример #2
0
 void IRepository.AddProxy(ProxyInfo info)
 {
     _proxies[info.Tag] = info;
     _counters.HostingPeer_State_AliveProxies++;
 }
Пример #3
0
        void IRepository.RemoveProxy(ProxyInfo info)
        {
            bool wasThere = _proxies.Remove(info.Tag);

            if (wasThere)
                _counters.HostingPeer_State_AliveProxies--;
        }