-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathEvents.cs
35 lines (29 loc) · 956 Bytes
/
Events.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
34
35
using System;
namespace PickAll
{
/// <summary>Defines the service type.</summary>
public enum ServiceType
{
/// <summary>Searcher service.</summary>
Searcher,
/// <summary>Post processor service.</summary>
PostProcessor
}
/// <summary>Holds event data for the <c>SearchBegin</c> event.</summary>
public sealed class SearchBeginEventArgs : EventArgs
{
public SearchBeginEventArgs(string query) => Query = query;
public string Query { get; private set; }
}
/// <summary>Holds event data for the <c>ResultProcessed</c> event.</summary>
public sealed class ResultHandledEventArgs : EventArgs
{
public ResultHandledEventArgs(ResultInfo result, ServiceType type)
{
Result = result;
Type = type;
}
public ResultInfo Result { get; private set; }
public ServiceType Type { get; private set; }
}
}