Example #1
0
        public AgentConnectionManager(IAgentProxyFactory proxyFactory)
        {
            if (proxyFactory == null)
            {
                throw new ArgumentNullException("proxyFactory");
            }

            this.proxyFactory = proxyFactory;
        }
Example #2
0
        public DeploymentAgent(IAgentProxyFactory proxyFactory, Uri uri)
        {
            if (proxyFactory == null)
            {
                throw new ArgumentNullException("proxyFactory");
            }

            if (uri == null)
            {
                throw new ArgumentNullException("uri");
            }

            this.proxyFactory = proxyFactory;
            this.uri          = uri;
            this.agentInfo    = new Lazy <AgentInfo>(() => this.GetService <IAgentInfoService>().GetInfo(), LazyThreadSafetyMode.PublicationOnly);
        }