/// <summary> /// 输出字符串 /// </summary> /// <param name="buffer"></param> /// <param name="index"></param> /// <param name="count"></param> public override void Write(char[] buffer, int index, int count) { var value = new string(buffer, index, count); if (value.EndsWith(Environment.NewLine)) { value = new string(buffer, index, count - Environment.NewLine.Length); } WsNoticeApi.OnLog(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + " " + value); System.Diagnostics.Debugger.Log(0, null, value); }
/// <summary> /// 刷新用户列表 /// </summary> private static void RefreshUsers() { Users = GetUserIds(); WsNoticeApi.LoadUsers(); }