Exemple #1
0
		private void WriteInternal(BaseLogEntity entity)
		{
			using (LogReceiverServiceClient service = new LogReceiverServiceClient())
			{
				service.StoreToDataBase(entity);
			}
		}
Exemple #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());
		}