forked from OrleansContrib/Orleankka
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPayloads.cs
More file actions
41 lines (35 loc) · 809 Bytes
/
Payloads.cs
File metadata and controls
41 lines (35 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System;
using System.Linq;
namespace Example.Azure
{
[Serializable]
public class Event
{
public readonly long Id;
public readonly string Sender;
public readonly DateTime Time;
public Event()
{}
public Event(string sender, long id, DateTime time)
{
Id = id;
Sender = sender;
Time = time;
}
}
[Serializable]
public class Notification
{
public readonly Event Event;
public readonly DateTime Received;
public readonly string Hub;
public Notification()
{}
public Notification(Event e, DateTime received, string hub)
{
Event = e;
Received = received;
Hub = hub;
}
}
}