KestrunApiContext enumeration
Specifies the API context in which a Kestrun route or schedule can be executed.
[Flags]
public enum KestrunApiContext
Values
name | value | description |
---|---|---|
None | 0x0 | No API context specified. |
Definition | 0x1 | Used during module/configuration time. |
Route | 0x2 | Used inside HTTP route execution. |
Schedule | 0x4 | Used during scheduled execution. |
ScheduleAndDefinition | 0x5 | Used during both scheduled execution and module/configuration time (shorthand for Schedule | Definition). |
Runtime | 0x6 | Used during both HTTP route and scheduled execution (shorthand for Route | Schedule). |
Everywhere | 0x7 | Used in all available API contexts (Definition, Route, and Schedule). |
See Also
- namespace global
- KestrunApiContext.cs