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
topicName
stringThe name of the topic the request should be published to.
data
TDataThe data that will be JSON serialized and provided as the event payload.
options
PubSubOptionsA PubSubOptions for additionnal event configuration.
cancellationToken
CancellationTokenA CancellationToken that can be used to cancel the operation.
Returns
Type Parameters
TData
The 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
topicName
stringThe name of the topic the request should be published to.
data
TDataThe data that will be JSON serialized and provided as the event payload.
cancellationToken
CancellationTokenA CancellationToken that can be used to cancel the operation.
Returns
Type Parameters
TData
The type of the data that will be JSON serialized and provided as the event payload.