2021-03-18 13:52:23 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace LeanCloud.Engine {
|
2021-04-20 11:58:41 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// LCEngineFunctionAttribute is an attribute of cloud function in engine.
|
|
|
|
|
/// </summary>
|
2021-03-18 13:52:23 +08:00
|
|
|
|
[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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|