private void configure(Setting setting) { var pipeline = ConfigurationPipeline.CreateDefaultPipeline(); pipeline.Parameters.Add("Setting", setting); pipeline.Execute(); }
private void Add(ConfigurationPipeline item) { if (!Items.ContainsKey(item.name)) { Items.Add(item.name, new List<string>()); } AddAllUsers(item); }
private void AddAllUsers(ConfigurationPipeline item) { foreach (var user in item.users) { if(!Items[item.name].Contains(user.skypeName)) { Items[item.name].Add(user.skypeName); } } }
private List<User> GetUserList(ConfigurationPipeline pipeline) { var userList = pipeline.users.Select(pipelineUser => new User(pipelineUser.skypeName)).ToList(); return userList; }
public void Add(string name, string skypeName) { var c = new ConfigurationPipeline { name = name, users = new ConfigurationPipelineUsersUser[1] }; c.users[0] = new ConfigurationPipelineUsersUser { skypeName = skypeName }; Add(c); }