Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Assertions to error .CreateService() and .CreateControllers() after Knit is started #240

Closed
SigmaThetaTech opened this issue Feb 1, 2024 · 0 comments

Comments

@SigmaThetaTech
Copy link
Contributor

assert(not DoesServiceExist(serviceDef.Name), `Service "{serviceDef.Name}" already exists`)

No assertions to prevent Knit.CreateService() while Knit is started
assert(not started, "Services must be created before calling \'Knit.Start()\'")

assert(not DoesControllerExist(controllerDef.Name), `Controller {controllerDef.Name} already exists`)

No assertions to prevent Knit.CreateController() while Knit is started
assert(not started, "Controllers must be created before calling \'Knit.Start()\'")

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant