You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.4 KiB
C#
29 lines
1.4 KiB
C#
namespace Ds.Module.MediatR
|
|
{
|
|
public interface IDistrbutedEventBus
|
|
{
|
|
Task PublishAsync<T>(string name, T? contentObj, string? callbackName = null, CancellationToken cancellationToken = default)
|
|
where T : IIntegrationEvent;
|
|
|
|
Task PublishAsync<T>(string name, T? contentObj, IDictionary<string, string?> headers, CancellationToken cancellationToken = default)
|
|
where T : IIntegrationEvent;
|
|
|
|
void Publish<T>(string name, T? contentObj, string? callbackName = null)
|
|
where T : IIntegrationEvent;
|
|
|
|
void Publish<T>(string name, T? contentObj, IDictionary<string, string?> headers)
|
|
where T : IIntegrationEvent;
|
|
|
|
Task PublishDelayAsync<T>(TimeSpan delayTime, string name, T? contentObj, IDictionary<string, string?> headers, CancellationToken cancellationToken = default)
|
|
where T : IIntegrationEvent;
|
|
|
|
Task PublishDelayAsync<T>(TimeSpan delayTime, string name, T? contentObj, string? callbackName = null, CancellationToken cancellationToken = default)
|
|
where T : IIntegrationEvent;
|
|
|
|
void PublishDelay<T>(TimeSpan delayTime, string name, T? contentObj, IDictionary<string, string?> headers)
|
|
where T : IIntegrationEvent;
|
|
|
|
void PublishDelay<T>(TimeSpan delayTime, string name, T? contentObj, string? callbackName = null)
|
|
where T : IIntegrationEvent;
|
|
}
|
|
} |