This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
nebolintegration_builtin_integrations [2021/09/27 01:42] – nebol | nebolintegration_builtin_integrations [2021/09/27 02:04] (current) – nebol | ||
---|---|---|---|
Line 8: | Line 8: | ||
This is how to use it: | This is how to use it: | ||
+ | |||
+ | < | ||
+ | // now let's add the Updating integration + trigger | ||
+ | engine.Integrations.Add(new UpdatingIntegration(sharpConfig, | ||
+ | engine.Triggers.Add(new UpdatingTrigger(sharpConfig)); | ||
+ | </ | ||
+ | |||
+ | Note that you're supplying the engine instance to the integration. This is so that the integration can communicate with the engine. | ||
+ | |||
+ | Also note that if you're running multiple engines on the same database you will need to run multiple Updating integrations aswell! You can do this by modifying the TechnicalName of the Updating integrations like so: | ||
+ | |||
+ | < | ||
+ | // now let's add the Updating integration + trigger | ||
+ | engine.Integrations.Add(new UpdatingIntegration(sharpConfig, | ||
+ | engine.Triggers.Add(new UpdatingTrigger(sharpConfig)); | ||
+ | </ | ||
+ | |||
+ | on your other service/ | ||
+ | |||
+ | < | ||
+ | // now let's add the Updating integration + trigger | ||
+ | engine.Integrations.Add(new UpdatingIntegration(sharpConfig, | ||
+ | engine.Triggers.Add(new UpdatingTrigger(sharpConfig)); | ||
+ | </ | ||
+ | |||
+ | The " |