-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathRouterFactory.cs
More file actions
69 lines (65 loc) · 2.14 KB
/
RouterFactory.cs
File metadata and controls
69 lines (65 loc) · 2.14 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
58
59
60
61
62
63
64
65
66
67
68
69
// 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: RouterFactory.cs
// Repository: https://github.com/sisk-http/core
using Sisk.Core.Http;
using System.Collections.Specialized;
namespace Sisk.Core.Routing
{
/// <summary>
/// Provides a class that instantiates a router, capable of porting applications for use with Agirax.
/// </summary>
/// <definition>
/// public abstract class RouterFactory
/// </definition>
/// <type>
/// Class
/// </type>
/// <namespace>
/// Sisk.Core.Routing
/// </namespace>
public abstract class RouterFactory
{
/// <summary>
/// Build and gets a router that will be used later by an <see cref="ListeningHost"/>.
/// </summary>
/// <definition>
/// public abstract Router BuildRouter();
/// </definition>
/// <type>
/// Method
/// </type>
/// <namespace>
/// Sisk.Core.Routing
/// </namespace>
public abstract Router BuildRouter();
/// <summary>
/// Method that is called by the service instantiator with the parameters defined in configuration before calling <see cref="BuildRouter()"/>.
/// </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
/// </namespace>
public abstract void Setup(NameValueCollection setupParameters);
/// <summary>
/// Method that is called immediately before initializing the service, after all configurations was parsed and set up.
/// </summary>
/// <definition>
/// public abstract void Bootstrap();
/// </definition>
/// <type>
/// Method
/// </type>
public abstract void Bootstrap();
}
}