예제 #1
0
        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;
        }
예제 #2
0
        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;
        }