You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

IOverride.cs 1.1 kB

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Reflection;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace Discord.Overrides
  8. {
  9. /// <summary>
  10. /// Represents a generic build override for Discord.Net
  11. /// </summary>
  12. public interface IOverride
  13. {
  14. /// <summary>
  15. /// Initializes the override.
  16. /// </summary>
  17. /// <remarks>
  18. /// This method is called by the <see cref="BuildOverrides"/> class
  19. /// and should not be called externally from it.
  20. /// </remarks>
  21. /// <param name="context">Context used by an override to initialize.</param>
  22. /// <returns>
  23. /// A task representing the asynchronous initialization operation.
  24. /// </returns>
  25. Task InitializeAsync(OverrideContext context);
  26. /// <summary>
  27. /// Registers a callback to load a dependency for this override.
  28. /// </summary>
  29. /// <param name="func">The callback to load an external dependency.</param>
  30. void RegisterPackageLookupHandler(Func<string, Task<Assembly>> func);
  31. }
  32. }