public AgentConnectionManager(IAgentProxyFactory proxyFactory) { if (proxyFactory == null) { throw new ArgumentNullException("proxyFactory"); } this.proxyFactory = proxyFactory; }
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); }