Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

PISystem.GetClientChannel(TChannel) Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
PISystem.GetClientChannel(TChannel) Method
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

Return Value

Type: ChannelFactoryTChannel

Version Information

AFSDK

Supported in: 3.1.1, 3.1.0, 3.0.2, 3.0.1, 3.0.0

See Also

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in