addPairProviderPorts<InterfaceType extends PairInterface> method

InterfaceType addPairProviderPorts<InterfaceType extends PairInterface>(
  1. PairProvider<InterfaceType> source, {
  2. String uniquify(
    1. String original
    )?,
})
inherited

Registers a provider source endpoint and returns its internal clone.

This is the type-safe equivalent of addPairInterfacePorts with PairRole.provider. Module logic must use the returned clone rather than the interface wrapped by source.

Implementation

InterfaceType addPairProviderPorts<InterfaceType extends PairInterface>(
  PairProvider<InterfaceType> source, {
  String Function(String original)? uniquify,
}) =>
    addPairInterfacePorts(
      source.interface,
      PairRole.provider,
      uniquify: uniquify,
    );