refactoring
This commit is contained in:
parent
9c100531ef
commit
92f333a4c4
26 changed files with 860 additions and 491 deletions
17
Sledgemapper.Api/Notifications/BaseNotification.cs
Normal file
17
Sledgemapper.Api/Notifications/BaseNotification.cs
Normal file
|
@ -0,0 +1,17 @@
|
|||
using MediatR;
|
||||
using System;
|
||||
|
||||
namespace Sledgemapper.Api.Handlers
|
||||
{
|
||||
public abstract class BaseNotification : INotification
|
||||
{
|
||||
public double Timestamp { get; private set; }
|
||||
public string SessionName { get; private set; }
|
||||
|
||||
public BaseNotification(string sessionName)
|
||||
{
|
||||
Timestamp = DateTimeOffset.Now.ToUnixTimeMilliseconds();
|
||||
SessionName = sessionName;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue