-
Notifications
You must be signed in to change notification settings - Fork 1
/
IRequestHandlerManager.cs
35 lines (32 loc) · 1.09 KB
/
IRequestHandlerManager.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;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ServiceAnt.Handler.Request
{
/// <summary>
/// It used to manage request handle function
/// </summary>
public interface IRequestHandlerManager : IAddRequestHandler
{
/// <summary>
/// Get the all handler factory of a request
/// </summary>
/// <param name="requestName">request name</param>
/// <returns></returns>
List<IHandlerFactory> GetHandlerFactoriesForRequest(string requestName);
/// <summary>
/// Get the all handler factory of a request
/// </summary>
/// <param name="request">request object</param>
/// <returns></returns>
List<IHandlerFactory> GetHandlerFactoriesForRequest(TransportTray @request);
/// <summary>
/// Get the request name by TransportTray type
/// </summary>
/// <param name="aType">the class inherited TransportTray</param>
/// <returns></returns>
string GetRequestName(Type aType);
}
}