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