IServerEntryPoint.cs 784 B

1234567891011121314151617181920
  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. /// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns>
  17. Task RunAsync();
  18. }
  19. }