/// <summary>
        /// 创建Log项
        /// </summary>
        /// <param name="notifyData"></param>
        /// <returns></returns>
        protected virtual LogEntity CreateLogEntity(CacheNotifyData notifyData)
        {
            LogEntity logEntity = new LogEntity(notifyData.ToString());

            logEntity.EventID      = 7002;
            logEntity.LogEventType = TraceEventType.Information;

            logEntity.Source   = GetLogSource();
            logEntity.Title    = "接收Cache";
            logEntity.Priority = LogPriority.Normal;

            return(logEntity);
        }
Пример #2
0
        private static LogEntity CreateLogEntity(CacheNotifyData notifyData)
        {
            string message = string.Format("{0}",
                    notifyData.ToString()
                );

            LogEntity logEntity = new LogEntity(message);

            logEntity.EventID = 7005;
            logEntity.LogEventType = TraceEventType.Information;
            logEntity.Source = "MmfCache";
            logEntity.Title = "发送MmfCache";
            logEntity.Priority = LogPriority.Normal;

            return logEntity;
        }
Пример #3
0
        private static LogEntity CreateLogEntity(CacheNotifyData notifyData)
        {
            string message = string.Format("{0}",
                                           notifyData.ToString()
                                           );

            LogEntity logEntity = new LogEntity(message);

            logEntity.EventID      = 7005;
            logEntity.LogEventType = TraceEventType.Information;
            logEntity.Source       = "MmfCache";
            logEntity.Title        = "发送MmfCache";
            logEntity.Priority     = LogPriority.Normal;

            return(logEntity);
        }
Пример #4
0
        private static LogEntity CreateLogEntity(CacheNotifyData notifyData, UdpCacheNotifierTarget endPoint)
        {
            string message = string.Format("{0}, {1}",
                                           notifyData.ToString(),
                                           endPoint.ToString()
                                           );

            LogEntity logEntity = new LogEntity(message);

            logEntity.EventID      = 7001;
            logEntity.LogEventType = TraceEventType.Information;
            logEntity.Source       = "UdpCache";
            logEntity.Title        = "发送UdpCache";
            logEntity.Priority     = LogPriority.Normal;

            return(logEntity);
        }
Пример #5
0
        private static LogEntity CreateLogEntity(CacheNotifyData notifyData, UdpCacheNotifierTarget endPoint)
        {
            string message = string.Format("{0}, {1}",
                    notifyData.ToString(),
                    endPoint.ToString()
                );

            LogEntity logEntity = new LogEntity(message);

            logEntity.EventID = 7001;
            logEntity.LogEventType = TraceEventType.Information;
            logEntity.Source = "UdpCache";
            logEntity.Title = "发送UdpCache";
            logEntity.Priority = LogPriority.Normal;

            return logEntity;
        }
		/// <summary>
		/// 创建Log项
		/// </summary>
		/// <param name="notifyData"></param>
		/// <returns></returns>
		protected virtual LogEntity CreateLogEntity(CacheNotifyData notifyData)
		{
			LogEntity logEntity = new LogEntity(notifyData.ToString());

			logEntity.EventID = 7002;
			logEntity.LogEventType = TraceEventType.Information;

			logEntity.Source = GetLogSource();
			logEntity.Title = "接收Cache";
			logEntity.Priority = LogPriority.Normal;

			return logEntity;
		}