IAppProcessor.cs 631 B

1234567891011121314151617
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace Edge.Core.Processor
  7. {
  8. public interface IAppProcessor : IProcessor // IDisposable
  9. {
  10. /// <summary>
  11. /// Called by Framework before call Start() for any Processors(include AppProcessor and DeviceProcessor), reference other target processors here.
  12. /// </summary>
  13. /// <param name="processors">get the target dependent processors by calling: processors.WithHandlerOrApp<DependencyProcessorType>()</param>
  14. void Init(IEnumerable<IProcessor> processors);
  15. }
  16. }