public SlimPlayer(SlimCLI server, string playerID) { _server = server; _attributes = new Dictionary<string, string>(); _attributes["playerid"] = playerID; }
public SlimPlayer(SlimCLI server, Dictionary<string, string> attributes) { _server = server; _attributes = attributes; }
private static void Show(string hdr, string msg, int secs) { ThreadPool.QueueUserWorkItem(delegate(object o) { SlimCLI server = new SlimCLI(); SlimPlayer player = new SlimPlayer(server, _userID); try { server.Open(); player.Show(hdr, msg, secs); } catch (Exception) { // ignore, we're done } finally { server.Close(); } }); }