2
0

IServerEntryPoint.cs 878 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using System.Threading.Tasks;
  3. namespace MediaBrowser.Controller.Plugins
  4. {
  5. /// <summary>
  6. /// Represents an entry point for a module in the application. This interface is scanned for automatically and
  7. /// provides a hook to initialize the module at application start.
  8. /// The entry point can additionally be flagged as a pre-startup task by implementing the
  9. /// <see cref="IRunBeforeStartup"/> interface.
  10. /// </summary>
  11. public interface IServerEntryPoint : IDisposable
  12. {
  13. /// <summary>
  14. /// Run the initialization for this module. This method is invoked at application start.
  15. /// </summary>
  16. Task RunAsync();
  17. }
  18. /// <summary>
  19. /// Indicates that a <see cref="IServerEntryPoint"/> should be invoked as a pre-startup task.
  20. /// </summary>
  21. public interface IRunBeforeStartup
  22. {
  23. }
  24. }