33 lines
785 B
C#
33 lines
785 B
C#
using xCommons.Extensions;
|
|
using xLoggingService.Models;
|
|
using xCommons.Configurations;
|
|
|
|
namespace xLoggingService.Extensions
|
|
{
|
|
public static class XLoggingServiceExtensions
|
|
{
|
|
/// <summary>
|
|
/// Enrich LogEntry ...
|
|
/// </summary>
|
|
/// <param name="source"></param>
|
|
/// <param name="configuration"></param>
|
|
/// <returns></returns>
|
|
public static XLogEntry Enrich(
|
|
this XLogEntry source,
|
|
XAppConfiguration configuration
|
|
)
|
|
{
|
|
//
|
|
if (source.IsNull() || configuration.IsNull())
|
|
{
|
|
return source;
|
|
}
|
|
|
|
//
|
|
source.Application = configuration.Name;
|
|
|
|
//
|
|
return source;
|
|
}
|
|
}
|
|
} |