28 lines
851 B
C#
28 lines
851 B
C#
using Bootstrap.DataAccess;
|
|
using Longbow.Caching;
|
|
using Longbow.ExceptionManagement;
|
|
using Longbow.ExceptionManagement.Configuration;
|
|
using System;
|
|
using System.Collections.Specialized;
|
|
|
|
namespace Bootstrap.Admin
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public class DBPublisher : IExceptionPublisher
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="ex"></param>
|
|
/// <param name="additionalInfo"></param>
|
|
/// <param name="publisherElement"></param>
|
|
public void Publish(Exception ex, NameValueCollection additionalInfo, ExceptionPublisherElement publisherElement)
|
|
{
|
|
if (publisherElement.Mode == PublisherMode.Off) return;
|
|
ExceptionHelper.Log(ex, additionalInfo);
|
|
CacheManager.Clear();
|
|
}
|
|
}
|
|
} |