User Tools

Site Tools


nebolintegration_builtin_integrations

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
nebolintegration_builtin_integrations [2021/09/27 01:41] nebolnebolintegration_builtin_integrations [2021/09/27 02:04] (current) nebol
Line 1: Line 1:
-==== [[NebolIntegration_Builtin_Integrations]] - Updating, Cleaning, Statistics, Reports ====+==== NebolIntegration: Built-in Integrations - Updating, Cleaning, Statistics, Reports ====
  
 === Updating === === Updating ===
Line 8: Line 8:
  
 This is how to use it: This is how to use it:
 +
 +<code>
 +// now let's add the Updating integration + trigger
 +engine.Integrations.Add(new UpdatingIntegration(sharpConfig, engine));
 +engine.Triggers.Add(new UpdatingTrigger(sharpConfig));
 +</code>
 +
 +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:
 +
 +<code>
 +// now let's add the Updating integration + trigger
 +engine.Integrations.Add(new UpdatingIntegration(sharpConfig, engine, "_ALPHA"));
 +engine.Triggers.Add(new UpdatingTrigger(sharpConfig));
 +</code>
 +
 +on your other service/server:
 +
 +<code>
 +// now let's add the Updating integration + trigger
 +engine.Integrations.Add(new UpdatingIntegration(sharpConfig, engine, "_BETA"));
 +engine.Triggers.Add(new UpdatingTrigger(sharpConfig));
 +</code>
 +
 +The "_ALPHA" and "_BETA" suffixes will be added to the technical name of the integration and thus make them unique.
nebolintegration_builtin_integrations.1632699700.txt.gz · Last modified: 2021/09/27 01:41 by nebol