public async Task CancelScheduledMessageAsync(Guid tokenId) { try { await _bus.CancelScheduledSend(tokenId); } catch (Exception ex) { Log.Error(ex, $"An error occurred while CancelScheduledSend the tokenId: {tokenId}"); throw; } }
public static async Task CancelScheduledMessage(this IBus bus, Guid tokenId) { await bus.CancelScheduledSend(tokenId); }