I want to write some code differently to run on Primary, Backup and DR depending upon their status.
If its Primary then do something, if Backup then something else and if DR then do something different from both Primary and Backup.
Mirroring is an InterSystems technology for High Availability, Disaster Recovery and Database Backup and OLAP solutions.