예제 #1
0
파일: LogReceiver.cs 프로젝트: evkap/DVS
		private void WriteInternal(BaseLogEntity entity)
		{
			using (LogReceiverServiceClient service = new LogReceiverServiceClient())
			{
				service.StoreToDataBase(entity);
			}
		}
예제 #2
0
		public void StoreToDataBase(BaseLogEntity entity)
		{
			if (entity is ErrorLog)
				SaveExceptionLogEntity((ErrorLog)entity);
			else if (entity is DebugLog)
				SaveDebugLogEntity((DebugLog)entity);			
			else
				throw new NotSupportedException(entity.ToString());
		}