PISystem.GetClientChannel(TChannel) Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Creates a ChannelFactory. The factory will be created using the appropriate binding and address based on the AFAuthenticationMode the PISystem is currently connected with.
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public ChannelFactory<TChannel> GetClientChannel<TChannel>( Binding windowsBinding, EndpointAddress windowsEndpoint, Binding modernAuthBinding, EndpointAddress modernAuthEndpoint )
Public Function GetClientChannel(Of TChannel) ( windowsBinding As Binding, windowsEndpoint As EndpointAddress, modernAuthBinding As Binding, modernAuthEndpoint As EndpointAddress ) As ChannelFactory(Of TChannel) Dim instance As PISystem Dim windowsBinding As Binding Dim windowsEndpoint As EndpointAddress Dim modernAuthBinding As Binding Dim modernAuthEndpoint As EndpointAddress Dim returnValue As ChannelFactory(Of TChannel) returnValue = instance.GetClientChannel(windowsBinding, windowsEndpoint, modernAuthBinding, modernAuthEndpoint)
public: generic<typename TChannel> ChannelFactory<TChannel>^ GetClientChannel( Binding^ windowsBinding, EndpointAddress^ windowsEndpoint, Binding^ modernAuthBinding, EndpointAddress^ modernAuthEndpoint )
member GetClientChannel : windowsBinding : Binding * windowsEndpoint : EndpointAddress * modernAuthBinding : Binding * modernAuthEndpoint : EndpointAddress -> ChannelFactory<'TChannel>
Parameters
- windowsBinding
- Type: System.ServiceModel.ChannelsBinding
The Binding to use for Windows Authentication - windowsEndpoint
- Type: System.ServiceModelEndpointAddress
The EndpointAddress to use for Windows Authentication - modernAuthBinding
- Type: System.ServiceModel.ChannelsBinding
The Binding to use for Modern Authentication - modernAuthEndpoint
- Type: System.ServiceModelEndpointAddress
The EndpointAddress to use for Modern Authentication
Type Parameters
- TChannel