internal void Add(ServiceError error) { this.serviceErrors.Add(error); }
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)); }
protected void EmitServiceError(ServiceError error) { if (this.Error != null) this.Error(this, new ServiceErrorEventArgs(error)); }
public ServiceErrorEventArgs(ServiceError error) : base() { this.error = error; }