Click or drag to resize

LinkHelper.GetRoleOfParticipant Method (ILinkService, IServiceProvider)

Gets the role played by a specified participant in the link.

Namespace:  AGI.Foundation.Access
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax
public static LinkRole GetRoleOfParticipant(
	ILinkService link,
	IServiceProvider participant
)

Parameters

link
Type: AGI.Foundation.Access.ILinkService
The link.
participant
Type: System.IServiceProvider
The participant.

Return Value

Type: LinkRole
The role played by the participant.
Exceptions
ExceptionCondition
ArgumentNullException Thrown when link is null.
ServiceNotAvailableException Thrown when link does not provide ILinkService.
ArgumentException Thrown when participant is not the Transmitter or the Receiver in the link.
See Also