using System.Xml.Linq; namespace Medusa.Core.Handlers { public abstract class Handler { public string HandlerModule { get; set; } = ""; public string HandlerMethod { get; set; } = ""; public virtual void Configure() { throw new NotImplementedException("Configure method not implemented."); } protected void Module(string module) { this.HandlerModule = module; } protected void Method(string method) { this.HandlerMethod = method; } public virtual XDocument Handle(string model) { throw new NotImplementedException("Handle method not implemented."); } public virtual Task HandleAsync(string model) { throw new NotImplementedException("Handle method not implemented."); } } }