using Bit.Core.AdminConsole.Models.Data.Integrations; namespace Bit.Core.Services; public interface IIntegrationHandler { Task HandleAsync(string json); } public interface IIntegrationHandler : IIntegrationHandler { Task HandleAsync(IntegrationMessage message); } public abstract class IntegrationHandlerBase : IIntegrationHandler { public async Task HandleAsync(string json) { var message = IntegrationMessage.FromJson(json); return await HandleAsync(message); } public abstract Task HandleAsync(IntegrationMessage message); }