-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathRequestHandlerFactory.cs
More file actions
57 lines (54 loc) · 1.83 KB
/
RequestHandlerFactory.cs
File metadata and controls
57 lines (54 loc) · 1.83 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// The Sisk Framework source code
// Copyright (c) 2023 PROJECT PRINCIPIUM
//
// The code below is licensed under the MIT license as
// of the date of its publication, available at
//
// File name: RequestHandlerFactory.cs
// Repository: https://github.com/sisk-http/core
using System.Collections.Specialized;
namespace Sisk.Core.Routing
{
/// <summary>
/// Provides a class that instantiates request handlers.
/// </summary>
/// <definition>
/// public abstract class RequestHandlerFactory
/// </definition>
/// <type>
/// Class
/// </type>
/// <namespace>
/// Sisk.Core.Routing.Handlers
/// </namespace>
public abstract class RequestHandlerFactory
{
/// <summary>
/// Builds and gets the <see cref="IRequestHandler"/> instance objects used later by an <see cref="Route"/>.
/// </summary>
/// <definition>
/// public abstract IRequestHandler[] BuildRequestHandlers();
/// </definition>
/// <type>
/// Method
/// </type>
/// <namespace>
/// Sisk.Core.Routing.Handlers
/// </namespace>
public abstract IRequestHandler[] BuildRequestHandlers();
/// <summary>
/// Method that is called by the Agirax instantiator with the parameters defined in configuration before calling <see cref="BuildRequestHandlers()"/>.
/// </summary>
/// <param name="setupParameters">Parameters that are defined in a configuration file.</param>
/// <definition>
/// public abstract void Setup(NameValueCollection setupParameters);
/// </definition>
/// <type>
/// Method
/// </type>
/// <namespace>
/// Sisk.Core.Routing.Handlers
/// </namespace>
public abstract void Setup(NameValueCollection setupParameters);
}
}