|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|