示例#1
0
 public PowerLineEndPoint AddHandler(string endpointName, PowerLineHandleMethod httpMethod, Action <PowerLineContext> func)
 {
     return(this.AddHandler(endpointName, httpMethod.ToString(), func));
 }
示例#2
0
 public PowerLineHandler AsMethod(PowerLineHandleMethod httpMethod) => this.AsMethod(httpMethod.ToString());
示例#3
0
 public static PowerLineHandler Create(PowerLineHandleMethod httpMethod, Action <PowerLineContext> mainFunction) => Create(httpMethod.ToString(), mainFunction);
示例#4
0
 public PowerLineHandler(PowerLineHandleMethod httpMethod) : this(httpMethod.ToString())
 {
 }