Exemplo n.º 1
0
        private FunnelsAgent(IIoC ioc)
        {
            _log = ioc.Resolve<ILogFile>();
            _config = ioc.Resolve<IFmConfigRa>();

            var agentId = Guid.NewGuid();

            int port = find_free_port();
            var uri = _config.MakeAgentUri(agentId, port);

            _info = new AgentInfo {AgentId = agentId, Uri = uri};

            var funnels = ioc.Resolve<IFunnelsManagerEx>();

            var target = wcf.FunnelsAgent.New(funnels);
            _host = WcfHost<comm.IFunnelsAgent>.NewAsync(_log, target);
        }
Exemplo n.º 2
0
 public static IFunnelsAgent New(AgentInfo info)
 {
     return
         new FunnelsAgent(info);
 }
Exemplo n.º 3
0
 private FunnelsAgent(AgentInfo info)
 {
     _info = info;
     _proxy = wcf.FunnelsAgent.New(info.Uri);
 }