jellyfin/Emby.Server.Implementations/Services/ServiceMethod.cs

21 lines
541 B
C#
Raw Normal View History

#pragma warning disable CS1591
using System;
2016-11-11 20:55:12 +01:00
2017-02-13 02:07:48 +01:00
namespace Emby.Server.Implementations.Services
2016-11-11 20:55:12 +01:00
{
2017-02-13 02:07:48 +01:00
public class ServiceMethod
2016-11-11 20:55:12 +01:00
{
public string Id { get; set; }
public ActionInvokerFn ServiceAction { get; set; }
2020-06-15 23:43:52 +02:00
2016-11-11 20:55:12 +01:00
public MediaBrowser.Model.Services.IHasRequestFilter[] RequestFilters { get; set; }
public static string Key(Type serviceType, string method, string requestDtoName)
{
2019-01-27 12:03:43 +01:00
return serviceType.FullName + " " + method.ToUpperInvariant() + " " + requestDtoName;
2016-11-11 20:55:12 +01:00
}
}
}