-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathEventArgs.cs
33 lines (29 loc) · 850 Bytes
/
EventArgs.cs
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
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Net.DDP.Server;
namespace Net.DDP.Server
{
public delegate void PublicationEvent(object sender, PublicationEventArgs args);
public delegate void DocumentEvent(object sender, DocumentEventArgs args);
public enum EventType
{
Added,
Changed,
Removed
}
public class PublicationEventArgs : DocumentEventArgs
{
public string Name { get; set; }
public DocumentCollection Collection { get; set; }
}
public class DocumentEventArgs
{
public EventType EventType { get; set; }
public ReactiveDocument Document { get; set; }
public PropertyChangedEventArgs PropertyEventArgs { get; set; }
}
}