public AgentHost(Agent agent, Action<AgentHostConfigurator> closure) : base(agent) { this.Agent = agent; AgentHostConfiguration configuration = new AgentHostConfiguration(); AgentHostConfigurator configurator = new AgentHostConfigurator(configuration); closure.Invoke(configurator); this.Configuration = configuration; }