public static XmppBotConfig FromAppConfig() { var config = new XmppBotConfig(); config.Server = ConfigurationManager.AppSettings["Server"]; config.Rooms = ConfigurationManager.AppSettings["Rooms"]; config.RoomNick = ConfigurationManager.AppSettings["RoomNick"]; config.Password = ConfigurationManager.AppSettings["Password"]; config.User = ConfigurationManager.AppSettings["User"]; config.Resource = ConfigurationManager.AppSettings["Resource"]; config.ConferenceServer = ConfigurationManager.AppSettings["ConferenceServer"]; return config; }
public static XmppBotConfig FromAppConfig() { var config = new XmppBotConfig(); config.Server = ConfigurationManager.AppSettings["Server"]; config.Rooms = ConfigurationManager.AppSettings["Rooms"]; config.RoomNick = ConfigurationManager.AppSettings["RoomNick"]; config.Password = ConfigurationManager.AppSettings["Password"]; config.User = ConfigurationManager.AppSettings["User"]; config.Resource = ConfigurationManager.AppSettings["Resource"]; config.ConferenceServer = ConfigurationManager.AppSettings["ConferenceServer"]; return(config); }
public Bot(XmppBotConfig config) { _config = config; }
public Bot(XmppBotConfig config) { _config = config; }