using System; namespace LeanCloud.Engine { /// /// LCEngineFunctionAttribute is an attribute of cloud function in engine. /// [AttributeUsage(AttributeTargets.Method, AllowMultiple = false)] public class LCEngineFunctionAttribute : Attribute { public string FunctionName { get; } public LCEngineFunctionAttribute(string funcName) { if (string.IsNullOrEmpty(funcName)) { throw new ArgumentNullException(nameof(funcName)); } FunctionName = funcName; } } }