Exemplo n.º 1
0
        /// <summary>
        /// 收集Sql执行失败计数
        /// </summary>
        public static void ProcessFailSqlOfMessageQueueTimes(string tableName, int count)
        {
            if (!IsEnable)
            {
                return;
            }
            var obj = _sqlCollection.GetOrAdd(tableName ?? "unknow", t => new SqlProfileCollection());

            Interlocked.Add(ref obj.TotalFailCount, count);
        }
Exemplo n.º 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="typeName"></param>
        /// <param name="key"></param>
        public static void ChangeEntityByAutoOfMessageQueueTimes(string typeName, string key)
        {
            if (!IsEnable)
            {
                return;
            }
            var obj = _entityObjectCollection.GetOrAdd(typeName, t => new EntityProfileCollection());

            obj.ChangeAutoTimes.Countor();
        }