This commit is contained in:
2020-02-17 00:09:33 +00:00
parent 3991d30681
commit cc6a6b8425
3 changed files with 24 additions and 30 deletions

View File

@ -25,22 +25,22 @@ namespace Yavsc.Models.Messaging
using Interfaces.Workflow;
/// <summary>
/// /// Base event.
/// Base event.
/// </summary>
public abstract class BaseEvent : IEvent {
public BaseEvent()
{
Topic = GetType().Name;
}
public BaseEvent(string topic)
public BaseEvent()
{
Topic = GetType().Name+"/"+topic;
Topic = GetType().Name;
}
public BaseEvent(string topic)
{
Topic = GetType().Name + "/" + topic;
}
public string Topic { get; private set; }
public string Sender { get; set; }
abstract public string CreateBody();
public abstract string CreateBody();
}