ChannelProviderRegisterTopicT, TResult Method (String, FuncT, ChannelClient, TResult) |
Registers a method that takes a parameter and returns a value for a given topic.
Namespace:
Openfin.Desktop.Messaging
Assembly:
OpenfinDesktop (in OpenfinDesktop.dll) Version: 17.4.0
Syntax public void RegisterTopic<T, TResult>(
string topic,
Func<T, ChannelClient, TResult> listener
)
Parameters
- topic
- Type: SystemString
The name of the registered topic. - listener
- Type: SystemFuncT, ChannelClient, TResult
An encapsulated method to execute for the registered method.
Type Parameters
- T
- The payload type passed to the registered method.
- TResult
- The return type of the registered method.
See Also