<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.augmensys.com/index.php?action=history&amp;feed=atom&amp;title=HowTo%3AUse_Change_Detection_via_Change_Notifications</id>
		<title>HowTo:Use Change Detection via Change Notifications - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.augmensys.com/index.php?action=history&amp;feed=atom&amp;title=HowTo%3AUse_Change_Detection_via_Change_Notifications"/>
		<link rel="alternate" type="text/html" href="https://wiki.augmensys.com/index.php?title=HowTo:Use_Change_Detection_via_Change_Notifications&amp;action=history"/>
		<updated>2026-04-24T22:04:57Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.2</generator>

	<entry>
		<id>https://wiki.augmensys.com/index.php?title=HowTo:Use_Change_Detection_via_Change_Notifications&amp;diff=28146&amp;oldid=prev</id>
		<title>NWE at 11:50, 7 May 2025</title>
		<link rel="alternate" type="text/html" href="https://wiki.augmensys.com/index.php?title=HowTo:Use_Change_Detection_via_Change_Notifications&amp;diff=28146&amp;oldid=prev"/>
				<updated>2025-05-07T11:50:30Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 11:50, 7 May 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 47:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 47:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Coding|Change Detection via Change Notifications]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Coding|Change Detection via Change Notifications]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Web service|Change Detection via Change Notifications]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Studio|Change Detection via Change Notifications]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Studio|Change Detection via Change Notifications]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Web service|Change Detection via Change Notifications]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:How-To|Use Change Detection via Change Notifications]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>NWE</name></author>	</entry>

	<entry>
		<id>https://wiki.augmensys.com/index.php?title=HowTo:Use_Change_Detection_via_Change_Notifications&amp;diff=28144&amp;oldid=prev</id>
		<title>NWE: NWE moved page Change Detection via Change Notifications to HowTo:Use Change Detection via Change Notifications</title>
		<link rel="alternate" type="text/html" href="https://wiki.augmensys.com/index.php?title=HowTo:Use_Change_Detection_via_Change_Notifications&amp;diff=28144&amp;oldid=prev"/>
				<updated>2025-05-07T11:50:13Z</updated>
		
		<summary type="html">&lt;p&gt;NWE moved page &lt;a href=&quot;/index.php?title=Change_Detection_via_Change_Notifications&quot; class=&quot;mw-redirect&quot; title=&quot;Change Detection via Change Notifications&quot;&gt;Change Detection via Change Notifications&lt;/a&gt; to &lt;a href=&quot;/index.php?title=HowTo:Use_Change_Detection_via_Change_Notifications&quot; title=&quot;HowTo:Use Change Detection via Change Notifications&quot;&gt;Use Change Detection via Change Notifications&lt;/a&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 11:50, 7 May 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan='2' style='text-align: center;'&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>NWE</name></author>	</entry>

	<entry>
		<id>https://wiki.augmensys.com/index.php?title=HowTo:Use_Change_Detection_via_Change_Notifications&amp;diff=28143&amp;oldid=prev</id>
		<title>NWE: Created page with &quot;In {{UBIK}} 4, there is a mechanism for the automatic detection of changes by other {{UBIK}} processes, which provide notifications for their changes. == Configuration == The...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.augmensys.com/index.php?title=HowTo:Use_Change_Detection_via_Change_Notifications&amp;diff=28143&amp;oldid=prev"/>
				<updated>2025-05-07T11:49:46Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;In {{UBIK}} 4, there is a mechanism for the automatic detection of changes by other {{UBIK}} processes, which provide notifications for their changes. == Configuration == The...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;In {{UBIK}} 4, there is a mechanism for the automatic detection of changes by other {{UBIK}} processes, which provide notifications for their changes.&lt;br /&gt;
== Configuration ==&lt;br /&gt;
The UBIKContent web service can be configured{{Version/ServerSince|4.9.0}} to react to such notifications by updating its cache; mostly the [[User_Groups_and_Rights|user group cache used for rights evaluation]].&lt;br /&gt;
&amp;lt;br/&amp;gt;Change detection can be configured in the [[Configuration_Files/AppSettings.config|application settings of the UBIKContent web service]].{{Version/ServerSince|4.9.0}}&lt;br /&gt;
== Customizing ==&lt;br /&gt;
There are multiple possibilities to react to change detections via customizing.&lt;br /&gt;
=== Overriding the event handler of an instance ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
protected virtual void OnBeforeUpdateByChangeNotification()&lt;br /&gt;
{&lt;br /&gt;
    // Called before an already cached instance will be reloaded from the database because of a change notification.&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
protected virtual void OnAfterUpdateByChangeNotification()&lt;br /&gt;
{ &lt;br /&gt;
    // Called after an instance was reloaded from the database because of a change notification.&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
=== Attaching a new event handler to the UBIKEventManager ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
// In Plugin code or custom code library, or anywhere else:&lt;br /&gt;
&lt;br /&gt;
UBIK.Kernel.UbikEventManager eventMan = Environment.GetEventManager();&lt;br /&gt;
eventMan.InstanceAfterUpdateByChangeNotification += EventMan_InstanceAfterUpdateByChangeNotification;&lt;br /&gt;
eventMan.InstanceBeforeUpdateByChangeNotification += EventMan_InstanceBeforeUpdateByChangeNotification;&lt;br /&gt;
// Don't forget to unregister from the events when the handlers are not needed anymore, to avoid a memory leak:&lt;br /&gt;
// eventMan.InstanceAfterUpdateByChangeNotification -= EventMan_InstanceAfterUpdateByChangeNotification;&lt;br /&gt;
// eventMan.InstanceBeforeUpdateByChangeNotification -= EventMan_InstanceBeforeUpdateByChangeNotification;&lt;br /&gt;
&lt;br /&gt;
// ...&lt;br /&gt;
&lt;br /&gt;
private void EventMan_InstanceBeforeUpdateByChangeNotification(BaseClass sender)&lt;br /&gt;
{&lt;br /&gt;
    // Act before imminent reload, for example:&lt;br /&gt;
    // InvalidateState(sender); &lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
private void EventMan_InstanceAfterUpdateByChangeNotification(BaseClass sender)&lt;br /&gt;
{&lt;br /&gt;
    // React to change, for example:&lt;br /&gt;
    // UpdateCache(sender); &lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Configuration_Files/AppSettings.config]]&lt;br /&gt;
* [[User_Groups_and_Rights]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Coding|Change Detection via Change Notifications]]&lt;br /&gt;
[[Category:Web service|Change Detection via Change Notifications]]&lt;br /&gt;
[[Category:Studio|Change Detection via Change Notifications]]&lt;/div&gt;</summary>
		<author><name>NWE</name></author>	</entry>

	</feed>