winsw/src/WinSW.Core/Logging/IServiceEventLogProvider.cs

17 lines
405 B
C#

using System.Diagnostics;
namespace WinSW.Logging
{
/// <summary>
/// Indicates that the class may reference the event log
/// </summary>
public interface IServiceEventLogProvider
{
/// <summary>
/// Locates Event Log for the service.
/// </summary>
/// <returns>Event Log or null if it is not avilable</returns>
EventLog? Locate();
}
}