Table of Contents

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 string

The name of the topic the request should be published to.

data TData

The data that will be JSON serialized and provided as the event payload.

options PubSubOptions

A PubSubOptions for additionnal event configuration.

cancellationToken CancellationToken

A CancellationToken that can be used to cancel the operation.

Returns

Task

A Task that will complete when the operation has completed.

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 string

The name of the topic the request should be published to.

data TData

The data that will be JSON serialized and provided as the event payload.

cancellationToken CancellationToken

A CancellationToken that can be used to cancel the operation.

Returns

Task

A Task that will complete when the operation has completed.

Type Parameters

TData

The type of the data that will be JSON serialized and provided as the event payload.