Click or drag to resize
OSIsoft, LLC

PICollectiveMemberPriority Property

Indicates the priority order in which to select a collective member.

Namespace:  OSIsoft.AF.PI
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 2.10.8.440
Syntax
public int Priority { get; set; }

Property Value

Type: Int32

Indicates the priority order in which to select a collective member when connection preferences and availability of members don't override the choice.

The highest priority member is given a priority of 1. Users can modify these values to any positive integer on their workstation to establish their preferred connection order. A negative priority indicates connections to that member are not allowed.

Remarks
When connecting to a collective, you can specify the AFConnectionPreference as a parameter to the PIServer.Connect() method. If not specified as a parameter, then the AFConnectionInfo.Preference is used. When the preference is set to Any or PreferPrimary and the primary server is unavailable, then this property determines the choice of the collective member for a connection attempt. By setting priorities appropriately on user workstations and running HA aware applications that use Any as a connection preference, the load on a collective can be distributed among its members.
Version Information

AFSDK

Supported in: 2.10.5, 2.10, 2.9.5, 2.9, 2.8.5, 2.8, 2.7.5, 2.7, 2.6, 2.5
See Also
Enabling Operational Intelligence