init
This commit is contained in:
40
Common/DTS.Common/Events/FeedbackEvent.cs
Normal file
40
Common/DTS.Common/Events/FeedbackEvent.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
using Prism.Events;
|
||||
|
||||
namespace DTS.Common.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// Event to inform feedback page to get updated
|
||||
/// FB 22323
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
public class FeedbackEvent : PubSubEvent<FeedbackArg> { }
|
||||
|
||||
|
||||
public class FeedbackArg
|
||||
{
|
||||
/// <summary>
|
||||
/// Severity being notified
|
||||
/// </summary>
|
||||
public Severity Severity { get; private set; }
|
||||
/// <summary>
|
||||
/// Message that is logged
|
||||
/// </summary>
|
||||
public string Message { get; private set; }
|
||||
|
||||
public FeedbackArg(Severity severity, string message)
|
||||
{
|
||||
Severity = severity;
|
||||
Message = message;
|
||||
}
|
||||
}
|
||||
public enum Severity
|
||||
{
|
||||
Information,
|
||||
Warning,
|
||||
Error,
|
||||
ResponseStarting,
|
||||
CommandStarting
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user