2
0

ServiceMethod.cs 711 B

123456789101112131415161718192021222324
  1. using System;
  2. namespace Emby.Server.Implementations.Services
  3. {
  4. public class ServiceMethod
  5. {
  6. public const string AnyAction = "ANY";
  7. public string Id { get; set; }
  8. public ActionInvokerFn ServiceAction { get; set; }
  9. public MediaBrowser.Model.Services.IHasRequestFilter[] RequestFilters { get; set; }
  10. public static string Key(Type serviceType, string method, string requestDtoName)
  11. {
  12. return serviceType.FullName + " " + method.ToUpper() + " " + requestDtoName;
  13. }
  14. public static string AnyKey(Type serviceType, string requestDtoName)
  15. {
  16. return Key(serviceType, AnyAction, requestDtoName);
  17. }
  18. }
  19. }