Example #1
0
		internal void Add(ServiceError error)
		{
			this.serviceErrors.Add(error);
		}
Example #2
0
		private static void HandleServiceError(ServiceError error)
		{
			ServiceManager.serviceErrors.Add(error);
			bool flag;
			switch (error.ErrorType)
			{
				case ServiceErrorType.Message:
					flag = Trace.IsLevelEnabled(TraceLevel.Info);
					break;
				case ServiceErrorType.Warning:
					flag = Trace.IsLevelEnabled(TraceLevel.Warning);
					break;
				case ServiceErrorType.Error:
					flag = Trace.IsLevelEnabled(TraceLevel.Error);
					break;
				default:
					flag = false;
					break;
			}
			if (flag)
				Trace.WriteLine(error.ToString());
			if (ServiceManager.ServiceError != null)
			ServiceManager.ServiceError(typeof(ServiceManager), new ServiceErrorEventArgs(error));
		}
Example #3
0
		protected void EmitServiceError(ServiceError error)
		{
			if (this.Error != null)
				this.Error(this, new ServiceErrorEventArgs(error));
		}
Example #4
0
		public ServiceErrorEventArgs(ServiceError error) : base()
		{
			this.error = error;
		}