using Edge.Core.Processor; using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; namespace Edge.Core.UniversalApi { public interface ICommunicationProvider : IDisposable { public Task RouteEventAsync(IProcessor eventSource, EventDescriptor eventDescriptor); /// /// Create API receiver(stub) for handle API calls. /// this method could be called multiple times due to hot-reload processors feature. /// /// /// public Task SetupAsync(IEnumerable processors); public IEnumerable GetApiDocuments(); } }