forked from NpgsqlRest/NpgsqlRest
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIEndpointCreateHandler.cs
More file actions
28 lines (25 loc) · 879 Bytes
/
Copy pathIEndpointCreateHandler.cs
File metadata and controls
28 lines (25 loc) · 879 Bytes
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
namespace NpgsqlRest
{
public interface IEndpointCreateHandler
{
/// <summary>
/// Before creating endpoints.
/// </summary>
/// <param name="builder">current application builder</param>
/// <param name="logger">configured application logger</param>
/// <param name="options">current NpgsqlRest options</param>
void Setup(IApplicationBuilder builder, ILogger? logger, NpgsqlRestOptions options) { }
/// <summary>
/// After successful endpoint creation.
/// </summary>
void Handle(RoutineEndpoint endpoint) { }
/// <summary>
/// After all endpoints are created.
/// </summary>
void Cleanup(RoutineEndpoint[] endpoints) { }
/// <summary>
/// After all endpoints are created.
/// </summary>
void Cleanup() { }
}
}