We build a C# application who writes PI data via a PI-AF Asset Model (AF attributes linked to PI tags with PiPoint Data Reference). OsiOSft support explained to us that it is impossible to write on Asset Model when PI-AF primary server is unavailable. So, if our application tries to write on Asset Model when PI-AF primary server is KO, there will be an exception.
So we search a method to manage this behaviour.
The first option is:
1) before writing on the Asset Model, we control if PI-AF primary server is OK.
2) if PI-AF primary server is available, the writing operation is done via the asset model (AF-SDK)
3) if PI-AF primary server is NOT available, the writing operation is done directly on PI database (PI-SDK)
The second option is:
We try to write on the Asset Model. If the write fails, we swap on PI database writing
So, if somebody has experience or knowledge about this, your help is welcome...