using Pole.Core.EventBus.Transaction; using System; using System.Collections.Generic; using System.Text; using System.Threading; using System.Threading.Tasks; namespace Pole.Core.EventBus { public interface IBus { IServiceProvider ServiceProvider { get; } IDbTransactionAdapter Transaction { get; set; } Task Publish(object @event, CancellationToken cancellationToken = default); } }