Interface IEventPublication
- Namespace
- GroupeIsa.Neos.ClusterCommunication
- Assembly
- GroupeIsa.Neos.ClusterCommunication.dll
Provides the functionalities of publication in cluster communication context.
public interface IEventPublication
Methods
PublishEventAsync<TData>(string, TData, PubSubOptions, CancellationToken)
Publish data to other Neos clusters.
Task PublishEventAsync<TData>(string topicName, TData data, PubSubOptions options, CancellationToken cancellationToken = default)
Parameters
topicNamestringThe name of the topic the request should be published to.
dataTDataThe data that will be JSON serialized and provided as the event payload.
optionsPubSubOptionsA PubSubOptions for additionnal event configuration.
cancellationTokenCancellationTokenA CancellationToken that can be used to cancel the operation.
Returns
Type Parameters
TDataThe type of the data that will be JSON serialized and provided as the event payload.
PublishEventAsync<TData>(string, TData, CancellationToken)
Publish data to other Neos clusters.
Task PublishEventAsync<TData>(string topicName, TData data, CancellationToken cancellationToken = default)
Parameters
topicNamestringThe name of the topic the request should be published to.
dataTDataThe data that will be JSON serialized and provided as the event payload.
cancellationTokenCancellationTokenA CancellationToken that can be used to cancel the operation.
Returns
Type Parameters
TDataThe type of the data that will be JSON serialized and provided as the event payload.